Add developer options to force enable Notes role.

The Notes role is enabled through a RRO that overlays the config
config_enableDefaultNotes (and its work profile counterpart).

Bug: 276432652
Test: ForceEnableNotesRolePreferenceControllerTest
Change-Id: Iab05b6c13dabda94c513919365a3a9f69dacb80e
This commit is contained in:
Vania Januar
2023-04-04 19:14:46 +01:00
parent a07ff94f83
commit bf4119b4b5
5 changed files with 217 additions and 0 deletions

View File

@@ -689,6 +689,7 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
controllers.add(new PhantomProcessPreferenceController(context));
controllers.add(new ContrastPreferenceController(
context, context.getSystemService(UiModeManager.class)));
controllers.add(new ForceEnableNotesRolePreferenceController(context));
return controllers;
}