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

Commit 6c06d9a5 authored by Kweku Adams's avatar Kweku Adams Committed by Automerger Merge Worker
Browse files

Merge "Note BATTERY_LEVEL_CHANGED semantics." into tm-dev am: ce680c76

parents 81250ce2 ce680c76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -382,7 +382,7 @@ public class InternalResourceService extends SystemService {
            if (increased) {
                mAgent.distributeBasicIncomeLocked(newBatteryLevel);
            } else if (newBatteryLevel == mCurrentBatteryLevel) {
                Slog.wtf(TAG, "Battery level stayed the same");
                // The broadcast is also sent when the plug type changes...
                return;
            }
            mCurrentBatteryLevel = newBatteryLevel;
+1 −1
Original line number Diff line number Diff line
@@ -3259,7 +3259,7 @@ public class Intent implements Parcelable, Cloneable {


    /**
     * Broadcast Action: Sent when the current battery level changes.
     * Broadcast Action: Sent when the current battery level or plug type changes.
     *
     * It has {@link android.os.BatteryManager#EXTRA_EVENTS} that carries a list of {@link Bundle}
     * instances representing individual battery level changes with associated