Skip to content

Commit db425bb

Browse files
Winson ChungAndroid (Google) Code Review
authored andcommitted
Merge "Fixing issue with Airplane Mode. (Bug 7141144)" into jb-mr1-dev
2 parents 9f750af + 08b1cc8 commit db425bb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/SystemUI/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<uses-permission android:name="android.permission.READ_PROFILE" />
2020
<uses-permission android:name="android.permission.READ_CONTACTS" />
2121
<uses-permission android:name="android.permission.CONFIGURE_WIFI_DISPLAY" />
22+
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
2223

2324
<!-- Networking and telephony -->
2425
<uses-permission android:name="android.permission.BLUETOOTH" />

packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ private void setAirplaneModeState(boolean enabled) {
186186
// TODO: Sets the view to be "awaiting" if not already awaiting
187187

188188
// Change the system setting
189-
Settings.System.putInt(mContext.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON,
189+
Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON,
190190
enabled ? 1 : 0);
191191

192192
// Post the intent

0 commit comments

Comments
 (0)