Refactor badges and notifications, migrate badge settings
This commit is contained in:
@@ -63,7 +63,7 @@ fun createFactorySettings(context: Context): Settings {
|
||||
.newBuilder()
|
||||
.setEnabled(false)
|
||||
.setImages(false)
|
||||
.setCustomUrl(null)
|
||||
.setCustomUrl("")
|
||||
)
|
||||
.setWebsiteSearch(Settings.WebsiteSearchSettings
|
||||
.newBuilder()
|
||||
@@ -73,5 +73,12 @@ fun createFactorySettings(context: Context): Settings {
|
||||
.newBuilder()
|
||||
.setEnabled(true)
|
||||
)
|
||||
.setBadges(Settings.BadgeSettings
|
||||
.newBuilder()
|
||||
.setNotifications(true)
|
||||
.setCloudFiles(true)
|
||||
.setShortcuts(true)
|
||||
.setSuspendedApps(true)
|
||||
)
|
||||
.build()
|
||||
}
|
||||
@@ -109,4 +109,12 @@ message Settings {
|
||||
}
|
||||
CalendarWidgetSettings calendar_widget = 17;
|
||||
|
||||
message BadgeSettings {
|
||||
bool notifications = 1;
|
||||
bool suspended_apps = 2;
|
||||
bool cloud_files = 3;
|
||||
bool shortcuts = 4;
|
||||
}
|
||||
BadgeSettings badges = 18;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user