summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2013-10-10 15:49:57 -0700
committerAdam Lesinski <adamlesinski@google.com>2013-10-10 15:49:57 -0700
commitc08ae4432cffbf0112e03a09c7ebcbb54cfd9bb1 (patch)
tree5287af48da120ace4d0954d88974a246822d0c80 /packages/SystemUI
parent828e4c49a037daef1a097cd1e77ed9171d551526 (diff)
downloadframeworks_base-c08ae4432cffbf0112e03a09c7ebcbb54cfd9bb1.zip
frameworks_base-c08ae4432cffbf0112e03a09c7ebcbb54cfd9bb1.tar.gz
frameworks_base-c08ae4432cffbf0112e03a09c7ebcbb54cfd9bb1.tar.bz2
Fix SystemUI crash on devices with WiFi only
A recent change to QuickSettings forgot to check whether the device has a radio or not. Change-Id: I0b89634b290e82a1702de7b2f539cef3efa6d246
Diffstat (limited to 'packages/SystemUI')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
index 6747d50..e6823ac 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
@@ -504,9 +504,11 @@ class QuickSettingsModel implements BluetoothStateChangeCallback,
}
void refreshRssiTile() {
- // We reinflate the original view due to potential styling changes that may have
- // taken place due to a configuration change.
- mRSSITile.reinflateContent(LayoutInflater.from(mContext));
+ if (mRSSITile != null) {
+ // We reinflate the original view due to potential styling changes that may have
+ // taken place due to a configuration change.
+ mRSSITile.reinflateContent(LayoutInflater.from(mContext));
+ }
}
// Bluetooth