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() {
|
private void updateOverlayDisplayDevicesOptions() {
|
||||||
String value = Settings.System.getString(getActivity().getContentResolver(),
|
String value = Settings.Global.getString(getActivity().getContentResolver(),
|
||||||
Settings.Secure.OVERLAY_DISPLAY_DEVICES);
|
Settings.Global.OVERLAY_DISPLAY_DEVICES);
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
value = "";
|
value = "";
|
||||||
}
|
}
|
||||||
@@ -725,8 +725,8 @@ public class DevelopmentSettings extends PreferenceFragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void writeOverlayDisplayDevicesOptions(Object newValue) {
|
private void writeOverlayDisplayDevicesOptions(Object newValue) {
|
||||||
Settings.System.putString(getActivity().getContentResolver(),
|
Settings.Global.putString(getActivity().getContentResolver(),
|
||||||
Settings.Secure.OVERLAY_DISPLAY_DEVICES, (String)newValue);
|
Settings.Global.OVERLAY_DISPLAY_DEVICES, (String)newValue);
|
||||||
updateOverlayDisplayDevicesOptions();
|
updateOverlayDisplayDevicesOptions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user