EVWidgets: AIRPLANE_MODE_ON moved to Global
Change-Id: I21aea703f8b33ecf352b0bd7469be6850f33fd06
diff --git a/src/com/evervolv/widgets/AirplaneModeWidgetProvider.java b/src/com/evervolv/widgets/AirplaneModeWidgetProvider.java
index ad86e66..df19017 100644
--- a/src/com/evervolv/widgets/AirplaneModeWidgetProvider.java
+++ b/src/com/evervolv/widgets/AirplaneModeWidgetProvider.java
@@ -136,8 +136,8 @@
* @return true if enabled.
*/
private static boolean getAirplaneModeState(Context context) {
- return Settings.System.getInt(context.getContentResolver(),
- Settings.System.AIRPLANE_MODE_ON, 0) == 1;
+ return Settings.Global.getInt(context.getContentResolver(),
+ Settings.Global.AIRPLANE_MODE_ON, 0) == 1;
}
/**
@@ -147,7 +147,7 @@
*/
public void toggleState(Context context) {
boolean state = getAirplaneModeState(context);
- Settings.System.putInt(context.getContentResolver(), Settings.System.AIRPLANE_MODE_ON,
+ Settings.Global.putInt(context.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON,
state ? 0 : 1);
// notify change
Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);