From c08ae4432cffbf0112e03a09c7ebcbb54cfd9bb1 Mon Sep 17 00:00:00 2001 From: Adam Lesinski Date: Thu, 10 Oct 2013 15:49:57 -0700 Subject: 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 --- .../com/android/systemui/statusbar/phone/QuickSettingsModel.java | 8 +++++--- 1 file 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 -- cgit v1.2.3-59-g8ed1b