Merge "Dark Theme "TURN ON UNTIL SUNRISE" is not retained after reboot"

This commit is contained in:
Jay Aliomer
2022-04-22 15:14:57 +00:00
committed by Gerrit Code Review

View File

@@ -1803,7 +1803,10 @@ final class UiModeManagerService extends SystemService {
mComputedNightMode = false;
return;
}
resetNightModeOverrideLocked();
if (mNightMode != MODE_NIGHT_AUTO || (mTwilightManager != null
&& mTwilightManager.getLastTwilightState() != null)) {
resetNightModeOverrideLocked();
}
}
private boolean resetNightModeOverrideLocked() {