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:
Darrell Shi
2022-12-14 17:06:46 +00:00
parent 801a4b98a3
commit 6aa1749eec
2 changed files with 4 additions and 1 deletions

View File

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

View File

@@ -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);
}
}