summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Adam Lesinski <adamlesinski@google.com> 2013-10-10 16:13:35 -0700
committer Android Git Automerger <android-git-automerger@android.com> 2013-10-10 16:13:35 -0700
commit9a786c251dab96f06a0800b4bad55f3ab839e234 (patch)
tree3efa3dfe9b447299ad25a8237da390e317741c09
parent193ad53ddd22a8fe8035246ec55e81fc7a7b2fe1 (diff)
parente8b92b6bc32bbb0bcd34ffe2979771b4104bed67 (diff)
am e8b92b6b: am 6c906dc5: Merge "Fix SystemUI crash on devices with WiFi only" into klp-dev
* commit 'e8b92b6bc32bbb0bcd34ffe2979771b4104bed67': Fix SystemUI crash on devices with WiFi only
-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 6747d5027d00..e6823ac7d2ff 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