summaryrefslogtreecommitdiffstats
path: root/policy/src/com/android
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2014-03-30 15:17:38 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-30 15:17:38 +0000
commit80b4e09849048a78e08911eff9907cae618eba35 (patch)
treedfe142df7f1d1be431a01e4b1da5f1f7d3abac01 /policy/src/com/android
parent1b09c97d8a7156a9f35ebab3c98db7b103852a58 (diff)
parent44b43a51c7d7e5c2cbe1d9912ee4a21686fa1a58 (diff)
downloadframeworks_base-80b4e09849048a78e08911eff9907cae618eba35.zip
frameworks_base-80b4e09849048a78e08911eff9907cae618eba35.tar.gz
frameworks_base-80b4e09849048a78e08911eff9907cae618eba35.tar.bz2
am 44b43a51: am 1e4cad81: Merge "GlobalActions: Fix Airplane Mode on/off issue"
* commit '44b43a51c7d7e5c2cbe1d9912ee4a21686fa1a58': GlobalActions: Fix Airplane Mode on/off issue
Diffstat (limited to 'policy/src/com/android')
-rw-r--r--policy/src/com/android/internal/policy/impl/GlobalActions.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/policy/src/com/android/internal/policy/impl/GlobalActions.java b/policy/src/com/android/internal/policy/impl/GlobalActions.java
index 7c0735b..4db7d4d 100644
--- a/policy/src/com/android/internal/policy/impl/GlobalActions.java
+++ b/policy/src/com/android/internal/policy/impl/GlobalActions.java
@@ -121,13 +121,14 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac
filter.addAction(TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED);
context.registerReceiver(mBroadcastReceiver, filter);
+ ConnectivityManager cm = (ConnectivityManager)
+ context.getSystemService(Context.CONNECTIVITY_SERVICE);
+ mHasTelephony = cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE);
+
// get notified of phone state changes
TelephonyManager telephonyManager =
(TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE);
- ConnectivityManager cm = (ConnectivityManager)
- context.getSystemService(Context.CONNECTIVITY_SERVICE);
- mHasTelephony = cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE);
mContext.getContentResolver().registerContentObserver(
Settings.Global.getUriFor(Settings.Global.AIRPLANE_MODE_ON), true,
mAirplaneModeObserver);