Move OVERLAY_DISPLAY_DEVICES to Global.

Bug: 7127417
Change-Id: I9ed62e98754eba8a6107a5cac00f00f83904852d
This commit is contained in:
Jeff Brown
2012-09-25 15:21:40 -07:00
parent 8bea3c3fb8
commit 075cb30d4c

View File

@@ -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();
}