Add notifications toggle to Settings > Date and Time
Design doc: go/android-tznotifications Test: atest and on device Bug: 283267917 Bug: 283437447 Flag: com.android.server.flags.datetime_notifications Change-Id: I91ea363a145d7184c997beae17862387114bc09b
This commit is contained in:
@@ -74,6 +74,15 @@ public class DateTimeSettings extends DashboardFragment implements
|
||||
use(TimeFeedbackPreferenceCategoryController.class);
|
||||
use(TimeFeedbackPreferenceController.class)
|
||||
.registerWithOptionalCategoryController(helpAndFeedbackCategoryController);
|
||||
|
||||
// All the elements in the category are optional, so we must ensure the category is only
|
||||
// available if any of the elements are available.
|
||||
NotificationsPreferenceCategoryController
|
||||
notificationsPreferenceCategoryController =
|
||||
use(NotificationsPreferenceCategoryController.class);
|
||||
use(TimeZoneNotificationsPreferenceController.class)
|
||||
.registerIn(
|
||||
notificationsPreferenceCategoryController);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user