Loading res/values/bools.xml +3 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,9 @@ <!-- Whether to hide wifi hotspot --> <bool name="hide_wifi_hotspot">false</bool> <!-- Whether to hide cast screen --> <bool name="hide_cast_screen">false</bool> <!-- Whether notify user that current connected ap is CMCC --> <bool name="connect_to_cmcc_notify">false</bool> Loading src/com/android/settings/DisplaySettings.java +4 −0 Original line number Diff line number Diff line Loading @@ -74,6 +74,7 @@ public class DisplaySettings extends SettingsPreferenceFragment implements private static final String KEY_DOZE = "doze"; private static final String KEY_AUTO_BRIGHTNESS = "auto_brightness"; private static final String KEY_AUTO_ROTATE = "auto_rotate"; private static final String KEY_CAST_SCREEN = "wifi_display"; private static final int DLG_GLOBAL_CHANGE_WARNING = 1; Loading Loading @@ -186,6 +187,9 @@ public class DisplaySettings extends SettingsPreferenceFragment implements } else { removePreference(KEY_AUTO_ROTATE); } if (getResources().getBoolean(R.bool.hide_cast_screen)){ removePreference(KEY_CAST_SCREEN); } } private static boolean allowAllRotations(Context context) { Loading Loading
res/values/bools.xml +3 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,9 @@ <!-- Whether to hide wifi hotspot --> <bool name="hide_wifi_hotspot">false</bool> <!-- Whether to hide cast screen --> <bool name="hide_cast_screen">false</bool> <!-- Whether notify user that current connected ap is CMCC --> <bool name="connect_to_cmcc_notify">false</bool> Loading
src/com/android/settings/DisplaySettings.java +4 −0 Original line number Diff line number Diff line Loading @@ -74,6 +74,7 @@ public class DisplaySettings extends SettingsPreferenceFragment implements private static final String KEY_DOZE = "doze"; private static final String KEY_AUTO_BRIGHTNESS = "auto_brightness"; private static final String KEY_AUTO_ROTATE = "auto_rotate"; private static final String KEY_CAST_SCREEN = "wifi_display"; private static final int DLG_GLOBAL_CHANGE_WARNING = 1; Loading Loading @@ -186,6 +187,9 @@ public class DisplaySettings extends SettingsPreferenceFragment implements } else { removePreference(KEY_AUTO_ROTATE); } if (getResources().getBoolean(R.bool.hide_cast_screen)){ removePreference(KEY_CAST_SCREEN); } } private static boolean allowAllRotations(Context context) { Loading