Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6aa1749e authored by Darrell Shi's avatar Darrell Shi
Browse files

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
parent 801a4b98
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;

+2 −1
Original line number Diff line number Diff line
@@ -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);
    }
}