Merge "Fixing issue with Airplane Mode. (Bug 7141144)" into jb-mr1-dev

This commit is contained in:
Winson Chung
2012-09-11 09:59:39 -07:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 1 deletions

View File

@@ -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" />

View File

@@ -186,7 +186,7 @@ class QuickSettingsModel implements BluetoothStateChangeCallback,
// 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