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

Commit 34018618 authored by Kenny Guy's avatar Kenny Guy
Browse files

Add a category key for the adaptive battery settings page

Bug: 146438499
Test: Manual, attempted to inject settings via a system app and succeeded
Change-Id: I10bc397f251c009bffc1e5c7090eb0b43fac6364
parent eeb90fec
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -61,6 +61,8 @@ public final class CategoryKey {
            "com.android.settings.category.ia.my_device_info";
    public static final String CATEGORY_BATTERY_SAVER_SETTINGS =
            "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 Map<String, String> KEY_COMPAT_MAP;

+2 −1
Original line number Diff line number Diff line
@@ -59,8 +59,9 @@ public class CategoryKeyTest {
        allKeys.add(CategoryKey.CATEGORY_SYSTEM_DEVELOPMENT);
        allKeys.add(CategoryKey.CATEGORY_GESTURES);
        allKeys.add(CategoryKey.CATEGORY_NIGHT_DISPLAY);
        allKeys.add(CategoryKey.CATEGORY_SMART_BATTERY_SETTINGS);
        // DO NOT REMOVE ANYTHING ABOVE

        assertThat(allKeys.size()).isEqualTo(18);
        assertThat(allKeys.size()).isEqualTo(19);
    }
}