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

Commit 405ece00 authored by Joseph Annareddy's avatar Joseph Annareddy Committed by Nolen Johnson
Browse files

SystemUI: BatteryController: Fix build of Car SystemUI

* Set a default, remove now superfluous code.

Change-Id: I39edcff9446e2631a3927bf353250aa43d58aee7
parent f0be5874
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ public interface BatteryController extends DemoMode,
    /**
     * Returns {@code true} if there's a battery present in the device.
     */
    boolean isPresent();
    default boolean isPresent() { return true; }

    /**
     * Returns {@code true} if the device is currently in power save mode.
+0 −5
Original line number Diff line number Diff line
@@ -68,11 +68,6 @@ public class FakeBatteryController extends BaseLeakChecker<BatteryStateChangeCal
        return false;
    }

    @Override
    public boolean isPresent() {
        return true;
    }

    @Override
    public boolean isPowerSave() {
        return mPowerSaveMode;