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

Commit 3eabebb7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Change all the system items unclickable in battery usage list."

parents 72fb811b e853dd31
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -272,8 +272,8 @@ public class BatteryDiffEntry {

    @VisibleForTesting
    void updateRestrictionFlagState() {
        mValidForRestriction = true;
        if (!mBatteryHistEntry.isAppEntry()) {
            mValidForRestriction = false;
            return;
        }
        final boolean isValidPackage =
+4 −4
Original line number Diff line number Diff line
@@ -168,8 +168,8 @@ public final class BatteryDiffEntryTest {
        assertThat(nameAndIcon.mName).isEqualTo(expectedName);
        assertThat(nameAndIcon.mIconId).isEqualTo(R.drawable.ic_settings_aod);
        // Verifies the restrictable flag in the cache.
        assertThat(entry.mValidForRestriction).isTrue();
        assertThat(BatteryDiffEntry.sValidForRestriction.get(entry.getKey())).isTrue();
        assertThat(entry.mValidForRestriction).isFalse();
        assertThat(BatteryDiffEntry.sValidForRestriction.get(entry.getKey())).isFalse();
    }

    @Test
@@ -194,8 +194,8 @@ public final class BatteryDiffEntryTest {
        assertThat(nameAndIcon.mName).isEqualTo(expectedName);
        assertThat(nameAndIcon.mIconId).isEqualTo(0);
        // Verifies the restrictable flag in the cache.
        assertThat(entry.mValidForRestriction).isTrue();
        assertThat(BatteryDiffEntry.sValidForRestriction.get(entry.getKey())).isTrue();
        assertThat(entry.mValidForRestriction).isFalse();
        assertThat(BatteryDiffEntry.sValidForRestriction.get(entry.getKey())).isFalse();
    }

    @Test