Remove toggles in battery settings.
In Android P, we only show "Battery saver" and "Power management" in battery settings. So we need to remove other preferences. Keep "Battery percentage" toggle for now because it is not cross-listed in other places. Bug: 71502850 Test: Screenshot Change-Id: Ia3c919f61239ff71f9343f2bce961aa4b89533c0
This commit is contained in:
@@ -400,18 +400,6 @@ public class PowerUsageSummaryLegacyTest {
|
||||
assertThat(percent).isWithin(PRECISION).of(POWER_USAGE_PERCENTAGE);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNonIndexableKeys_MatchPreferenceKeys() {
|
||||
final Context context = RuntimeEnvironment.application;
|
||||
final List<String> niks = PowerUsageSummary.SEARCH_INDEX_DATA_PROVIDER
|
||||
.getNonIndexableKeys(context);
|
||||
|
||||
final List<String> keys = XmlTestUtils.getKeysFromPreferenceXml(context,
|
||||
R.xml.power_usage_summary);
|
||||
|
||||
assertThat(keys).containsAllIn(niks);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPreferenceControllers_getPreferenceKeys_existInPreferenceScreen() {
|
||||
final Context context = RuntimeEnvironment.application;
|
||||
|
Reference in New Issue
Block a user