Merge "Reset last activated time after auto mode changed" into oc-dr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
13cfb46e41
@@ -182,6 +182,10 @@ public final class NightDisplayController {
|
||||
throw new IllegalArgumentException("Invalid autoMode: " + autoMode);
|
||||
}
|
||||
|
||||
if (getAutoMode() != autoMode) {
|
||||
Secure.putLongForUser(mContext.getContentResolver(),
|
||||
Secure.NIGHT_DISPLAY_LAST_ACTIVATED_TIME, -1L, mUserId);
|
||||
}
|
||||
return Secure.putIntForUser(mContext.getContentResolver(),
|
||||
Secure.NIGHT_DISPLAY_AUTO_MODE, autoMode, mUserId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user