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

Commit 3f3343db authored by Wesley Wang's avatar Wesley Wang
Browse files

Remove HIGH_DEVICE_USAGE tip from battery tip

Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batterytip.BatteryTipLoaderTest
Bug: 409874807
Fix: 409874807
Flag: EXEMPT for bug fix
Change-Id: I56dc18120018e2fca97a6d31f7ab91da57b91fd3
parent f0ff4bf6
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -58,9 +58,6 @@ public class BatteryTipLoader extends AsyncLoaderCompat<List<BatteryTip>> {
        final BatteryInfo batteryInfo = mBatteryUtils.getBatteryInfo(TAG);
        final Context context = getContext().getApplicationContext();

        tips.add(
                new HighUsageDetector(context, batteryTipPolicy, mBatteryUsageStats, batteryInfo)
                        .detect());
        tips.add(new BatteryDefenderDetector(batteryInfo, context).detect());
        tips.add(new IncompatibleChargerDetector(context).detect());
        FeatureFactory.getFeatureFactory()
+0 −1
Original line number Diff line number Diff line
@@ -53,7 +53,6 @@ public class BatteryTipLoaderTest {
        BatteryTip.TipType.LOW_BATTERY,
        BatteryTip.TipType.BATTERY_DEFENDER,
        BatteryTip.TipType.INCOMPATIBLE_CHARGER,
        BatteryTip.TipType.HIGH_DEVICE_USAGE
    };

    @Mock(answer = Answers.RETURNS_DEEP_STUBS)