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

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

Merge "Don't show the battery saver toast when the screen turns on"

parents 04bcc318 1ecaf7c7
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -217,13 +217,6 @@ public class BatterySaverController implements BatterySaverPolicyListener {
            pmi.powerHint(PowerHint.LOW_POWER, enabled ? 1 : 0);
        }

        if (enabled) {
            // STOPSHIP Remove the toast.
            Toast.makeText(mContext,
                    com.android.internal.R.string.battery_saver_warning,
                    Toast.LENGTH_LONG).show();
        }

        if (ArrayUtils.isEmpty(fileValues)) {
            mFileUpdater.restoreDefault();
        } else {
@@ -231,6 +224,13 @@ public class BatterySaverController implements BatterySaverPolicyListener {
        }

        if (sendBroadcast) {
            if (enabled) {
                // STOPSHIP Remove the toast.
                Toast.makeText(mContext,
                        com.android.internal.R.string.battery_saver_warning,
                        Toast.LENGTH_LONG).show();
            }

            if (DEBUG) {
                Slog.i(TAG, "Sending broadcasts for mode: " + enabled);
            }