Add communal settings category key.
This change adds a new communal category key so that packages can inject preferences into the top-level Communal settings. Bug: 261641080 Test: atest CategoryTest Change-Id: I421c33858c38a8a571a21e8ce49b09ab121332df
This commit is contained in:
@@ -66,6 +66,8 @@ public final class CategoryKey {
|
||||
"com.android.settings.category.ia.battery_saver_settings";
|
||||
public static final String CATEGORY_SMART_BATTERY_SETTINGS =
|
||||
"com.android.settings.category.ia.smart_battery_settings";
|
||||
public static final String CATEGORY_COMMUNAL_SETTINGS =
|
||||
"com.android.settings.category.ia.communal";
|
||||
|
||||
public static final Map<String, String> KEY_COMPAT_MAP;
|
||||
|
||||
|
||||
@@ -60,8 +60,9 @@ public class CategoryKeyTest {
|
||||
allKeys.add(CategoryKey.CATEGORY_GESTURES);
|
||||
allKeys.add(CategoryKey.CATEGORY_NIGHT_DISPLAY);
|
||||
allKeys.add(CategoryKey.CATEGORY_SMART_BATTERY_SETTINGS);
|
||||
allKeys.add(CategoryKey.CATEGORY_COMMUNAL_SETTINGS);
|
||||
// DO NOT REMOVE ANYTHING ABOVE
|
||||
|
||||
assertThat(allKeys.size()).isEqualTo(19);
|
||||
assertThat(allKeys.size()).isEqualTo(20);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user