Loading packages/SettingsLib/src/com/android/settingslib/fuelgauge/BatterySaverUtils.java +3 −1 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.PowerManager; import android.os.UserHandle; import android.provider.Settings.Global; import android.provider.Settings.Secure; import android.text.TextUtils; Loading Loading @@ -186,7 +187,8 @@ public class BatterySaverUtils { } private static void setBatterySaverConfirmationAcknowledged(Context context) { Secure.putInt(context.getContentResolver(), Secure.LOW_POWER_WARNING_ACKNOWLEDGED, 1); Secure.putIntForUser(context.getContentResolver(), Secure.LOW_POWER_WARNING_ACKNOWLEDGED, 1, UserHandle.USER_CURRENT); } /** Loading packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java +2 −2 Original line number Diff line number Diff line Loading @@ -585,10 +585,10 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI { resolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, batterySaverTriggerLevel); Secure.putInt( Secure.putIntForUser( resolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, 1); 1, UserHandle.USER_CURRENT); }); } else { d.setTitle(R.string.battery_saver_confirmation_title); Loading Loading
packages/SettingsLib/src/com/android/settingslib/fuelgauge/BatterySaverUtils.java +3 −1 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.PowerManager; import android.os.UserHandle; import android.provider.Settings.Global; import android.provider.Settings.Secure; import android.text.TextUtils; Loading Loading @@ -186,7 +187,8 @@ public class BatterySaverUtils { } private static void setBatterySaverConfirmationAcknowledged(Context context) { Secure.putInt(context.getContentResolver(), Secure.LOW_POWER_WARNING_ACKNOWLEDGED, 1); Secure.putIntForUser(context.getContentResolver(), Secure.LOW_POWER_WARNING_ACKNOWLEDGED, 1, UserHandle.USER_CURRENT); } /** Loading
packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java +2 −2 Original line number Diff line number Diff line Loading @@ -585,10 +585,10 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI { resolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, batterySaverTriggerLevel); Secure.putInt( Secure.putIntForUser( resolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, 1); 1, UserHandle.USER_CURRENT); }); } else { d.setTitle(R.string.battery_saver_confirmation_title); Loading