summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src
diff options
context:
space:
mode:
authorAndrew Flynn <flynn@google.com>2012-06-01 09:00:46 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-06-01 09:00:46 -0700
commitef3a8021e412b33db817789a9c1869022b5c901b (patch)
treea0feb8847005b978366f5bd0ed3171f29a676929 /packages/SystemUI/src
parentb40c0b5aa5df14fa5c5ff0ca2012307fc56fb38c (diff)
parent0fa9d2d03f2825e22408cda65a9bbb88a43d9a31 (diff)
downloadframeworks_base-ef3a8021e412b33db817789a9c1869022b5c901b.zip
frameworks_base-ef3a8021e412b33db817789a9c1869022b5c901b.tar.gz
frameworks_base-ef3a8021e412b33db817789a9c1869022b5c901b.tar.bz2
Merge "Refresh signal cluster for airplane switch." into jb-dev
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java
index 584a69e4..273076c 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java
@@ -127,6 +127,7 @@ public class NetworkController extends BroadcastReceiver {
private static final int INET_CONDITION_THRESHOLD = 50;
private boolean mAirplaneMode = false;
+ private boolean mLastAirplaneMode = true;
// our ui
Context mContext;
@@ -1062,7 +1063,8 @@ public class NetworkController extends BroadcastReceiver {
|| mLastDataDirectionOverlayIconId != combinedActivityIconId
|| mLastWifiIconId != mWifiIconId
|| mLastWimaxIconId != mWimaxIconId
- || mLastDataTypeIconId != mDataTypeIconId)
+ || mLastDataTypeIconId != mDataTypeIconId
+ || mLastAirplaneMode != mAirplaneMode)
{
// NB: the mLast*s will be updated later
for (SignalCluster cluster : mSignalClusters) {
@@ -1070,6 +1072,10 @@ public class NetworkController extends BroadcastReceiver {
}
}
+ if (mLastAirplaneMode != mAirplaneMode) {
+ mLastAirplaneMode = mAirplaneMode;
+ }
+
// the phone icon on phones
if (mLastPhoneSignalIconId != mPhoneSignalIconId) {
mLastPhoneSignalIconId = mPhoneSignalIconId;