Merge "Do not update nightmode from settings for car mode"

This commit is contained in:
Keun-young Park
2020-08-27 22:01:55 +00:00
committed by Android (Google) Code Review

View File

@@ -489,6 +489,9 @@ final class UiModeManagerService extends SystemService {
* @return True if the new value is different from the old value. False otherwise.
*/
private boolean updateNightModeFromSettingsLocked(Context context, Resources res, int userId) {
if (mCarModeEnabled) {
return false;
}
int oldNightMode = mNightMode;
if (mSetupWizardComplete) {
mNightMode = Secure.getIntForUser(context.getContentResolver(),