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

Commit 42da1330 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix b/264582296: Incorrect app battery usage after switching between...

Merge "Fix b/264582296: Incorrect app battery usage after switching between 'restricted/unrestricted/optimized'."
parents aa88bca2 e8f2631f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ public class BatteryOptimizeUtils {

    /** Sets the {@link OptimizationMode} for associated app. */
    public void setAppUsageState(@OptimizationMode int mode, Action action) {
        if (getAppOptimizationMode(mMode, mAllowListed) == mode) {
        if (getAppOptimizationMode() == mode) {
            Log.w(TAG, "set the same optimization mode for: " + mPackageName);
            return;
        }