Merge "Add color mode setting" into oc-mr1-dev
This commit is contained in:
@@ -4562,6 +4562,11 @@ message MetricsEvent {
|
||||
// OS: O MR
|
||||
NOTIFICATION_SNOOZE_OPTIONS = 1142;
|
||||
|
||||
// OPEN: Settings > Display > Colors
|
||||
// CATEGORY: SETTINGS
|
||||
// OS: O MR
|
||||
COLOR_MODE_SETTINGS = 1143;
|
||||
|
||||
// ---- End O-MR1 Constants, all O-MR1 constants go above this line ----
|
||||
|
||||
// Add new aosp constants above this line.
|
||||
|
||||
@@ -7673,7 +7673,8 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
}
|
||||
|
||||
boolean hasWideColorGamutSupport() {
|
||||
return mHasWideColorGamutSupport;
|
||||
return mHasWideColorGamutSupport &&
|
||||
!SystemProperties.getBoolean("persist.sys.sf.native_mode", false);
|
||||
}
|
||||
|
||||
void updateNonSystemOverlayWindowsVisibilityIfNeeded(WindowState win, boolean surfaceShown) {
|
||||
|
||||
Reference in New Issue
Block a user