Skip to content

Commit

Permalink
ChargingControl: Reset internal states on settings change
Browse files Browse the repository at this point in the history
Change-Id: Ib49d6b5b9190a71f5447125ed1aa70da894e6c18
Signed-off-by: Mohammad Hasan Keramat J <ikeramat@protonmail.com>
  • Loading branch information
hellobbn authored and bheatleyyy committed Sep 28, 2023
1 parent 87b6af7 commit 0a45669
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -641,8 +641,8 @@ private void handleSettingChange() {
Settings.System.CHARGING_CONTROL_TARGET_TIME,
mDefaultTargetTime);

// Cancel notification, so that it can be updated later
mChargingNotification.cancel();
// Reset internal states
resetInternalState();

// Update based on those values
updateChargeControl();
Expand Down

0 comments on commit 0a45669

Please sign in to comment.