Move OVERLAY_DISPLAY_DEVICES to Global.
Bug: 7127417 Change-Id: I9ed62e98754eba8a6107a5cac00f00f83904852d
This commit is contained in:
@@ -706,8 +706,8 @@ public class DevelopmentSettings extends PreferenceFragment
|
||||
}
|
||||
|
||||
private void updateOverlayDisplayDevicesOptions() {
|
||||
String value = Settings.System.getString(getActivity().getContentResolver(),
|
||||
Settings.Secure.OVERLAY_DISPLAY_DEVICES);
|
||||
String value = Settings.Global.getString(getActivity().getContentResolver(),
|
||||
Settings.Global.OVERLAY_DISPLAY_DEVICES);
|
||||
if (value == null) {
|
||||
value = "";
|
||||
}
|
||||
@@ -725,8 +725,8 @@ public class DevelopmentSettings extends PreferenceFragment
|
||||
}
|
||||
|
||||
private void writeOverlayDisplayDevicesOptions(Object newValue) {
|
||||
Settings.System.putString(getActivity().getContentResolver(),
|
||||
Settings.Secure.OVERLAY_DISPLAY_DEVICES, (String)newValue);
|
||||
Settings.Global.putString(getActivity().getContentResolver(),
|
||||
Settings.Global.OVERLAY_DISPLAY_DEVICES, (String)newValue);
|
||||
updateOverlayDisplayDevicesOptions();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user