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:
Geoffrey Boullanger
2024-10-03 17:36:38 +00:00
parent e2ba1a89c2
commit 98cfa0af0a
14 changed files with 395 additions and 16 deletions

View File

@@ -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