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

Commit 7e568587 authored by YK Hung's avatar YK Hung Committed by Android (Google) Code Review
Browse files

Merge "Remove HIGH_DEVICE_USAGE tip from battery tip" into main

parents 553b3506 3f3343db
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)