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

Commit ef09eebd authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Stop listening to POWER_SAVE_MODE_CHANGING broadcast." into rvc-dev am:...

Merge "Stop listening to POWER_SAVE_MODE_CHANGING broadcast." into rvc-dev am: add24612 am: 7f3c9bbb am: 5fa67b40

Change-Id: I1d7bc71b3a160db6ad0a979b9d65f0ef95af4973
parents 2fc888b5 5fa67b40
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -99,7 +99,6 @@ public class BatteryControllerImpl extends BroadcastReceiver implements BatteryC
        IntentFilter filter = new IntentFilter();
        filter.addAction(Intent.ACTION_BATTERY_CHANGED);
        filter.addAction(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED);
        filter.addAction(PowerManager.ACTION_POWER_SAVE_MODE_CHANGING);
        filter.addAction(ACTION_LEVEL_TEST);
        mBroadcastDispatcher.registerReceiver(this, filter);
    }
@@ -155,8 +154,6 @@ public class BatteryControllerImpl extends BroadcastReceiver implements BatteryC
            fireBatteryLevelChanged();
        } else if (action.equals(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED)) {
            updatePowerSave();
        } else if (action.equals(PowerManager.ACTION_POWER_SAVE_MODE_CHANGING)) {
            setPowerSave(intent.getBooleanExtra(PowerManager.EXTRA_POWER_SAVE_MODE, false));
        } else if (action.equals(ACTION_LEVEL_TEST)) {
            mTestmode = true;
            mMainHandler.post(new Runnable() {