commit | 08b1cc847524f66fd1d8c8d9065bf81bdd1fb04a | [log] [tgz] |
---|---|---|
author | Winson Chung <winsonc@google.com> | Tue Sep 11 10:00:53 2012 -0700 |
committer | Winson Chung <winsonc@google.com> | Tue Sep 11 10:01:24 2012 -0700 |
tree | f0e4065c9cf0fe7582f12d6f32d84f7365712392 | |
parent | e641b6a99cabad7076e10694a5b1b30f449de462 [diff] |
Fixing issue with Airplane Mode. (Bug 7141144) Change-Id: I83e2bdd5e8b0e0c732e8d46c47f8619daa0c7c02
diff --git a/packages/SystemUI/AndroidManifest.xml b/packages/SystemUI/AndroidManifest.xml index 22a97bd..44fb49a 100644 --- a/packages/SystemUI/AndroidManifest.xml +++ b/packages/SystemUI/AndroidManifest.xml
@@ -19,6 +19,7 @@ <uses-permission android:name="android.permission.READ_PROFILE" /> <uses-permission android:name="android.permission.READ_CONTACTS" /> <uses-permission android:name="android.permission.CONFIGURE_WIFI_DISPLAY" /> + <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /> <!-- Networking and telephony --> <uses-permission android:name="android.permission.BLUETOOTH" />
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java index 0d7540b..2318921 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
@@ -186,7 +186,7 @@ // TODO: Sets the view to be "awaiting" if not already awaiting // Change the system setting - Settings.System.putInt(mContext.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON, + Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON, enabled ? 1 : 0); // Post the intent