Make picture color mode less of a feature
- Shun it to developer settings - Hide 'natural' mode - Remove dialog Bug: 24038268 Change-Id: Ibaf363bc06b444f2a361707b98742328fc290cfc
This commit is contained in:
@@ -156,6 +156,7 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
|
||||
private static final String USB_CONFIGURATION_KEY = "select_usb_configuration";
|
||||
private static final String WIFI_LEGACY_DHCP_CLIENT_KEY = "legacy_dhcp_client";
|
||||
private static final String MOBILE_DATA_ALWAYS_ON = "mobile_data_always_on";
|
||||
private static final String KEY_COLOR_MODE = "color_mode";
|
||||
|
||||
private static final String INACTIVE_APPS_KEY = "inactive_apps";
|
||||
|
||||
@@ -253,6 +254,8 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
|
||||
|
||||
private SwitchPreference mShowAllANRs;
|
||||
|
||||
private ColorModePreference mColorModePreference;
|
||||
|
||||
private final ArrayList<Preference> mAllPrefs = new ArrayList<Preference>();
|
||||
|
||||
private final ArrayList<SwitchPreference> mResetSwitchPrefs
|
||||
@@ -407,6 +410,13 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
|
||||
mAllPrefs.add(hdcpChecking);
|
||||
removePreferenceForProduction(hdcpChecking);
|
||||
}
|
||||
|
||||
mColorModePreference = (ColorModePreference) findPreference(KEY_COLOR_MODE);
|
||||
mColorModePreference.updateCurrentAndSupported();
|
||||
if (mColorModePreference.getTransformsCount() < 2) {
|
||||
removePreference(KEY_COLOR_MODE);
|
||||
mColorModePreference = null;
|
||||
}
|
||||
}
|
||||
|
||||
private ListPreference addListPreference(String prefKey) {
|
||||
@@ -512,6 +522,19 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
|
||||
setPrefsEnabledState(mLastEnabledState);
|
||||
}
|
||||
mSwitchBar.show();
|
||||
|
||||
if (mColorModePreference != null) {
|
||||
mColorModePreference.startListening();
|
||||
mColorModePreference.updateCurrentAndSupported();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
if (mColorModePreference != null) {
|
||||
mColorModePreference.stopListening();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user