Skip to content

Commit 08b1cc8

Browse files
author
Winson Chung
committed
Fixing issue with Airplane Mode. (Bug 7141144)
Change-Id: I83e2bdd5e8b0e0c732e8d46c47f8619daa0c7c02
1 parent e641b6a commit 08b1cc8

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)