Don't crash if we've never gotten a signal strength update.

It looks like this timing bug has been there forever, and we're just starting to hit it now.

Bug: 3027952
Change-Id: I5c14ccd7f74205dc6930f4282cec0e23eeb54cab
This commit is contained in:
Joe Onorato
2010-09-23 09:50:04 -07:00
parent 903fc22106
commit 49a8bbf4ea

View File

@@ -844,7 +844,7 @@ public class StatusBarPolicy {
int[] iconList;
// Display signal strength while in "emergency calls only" mode
if (!hasService() && !mServiceState.isEmergencyOnly()) {
if (mServiceState == null || (!hasService() && !mServiceState.isEmergencyOnly())) {
//Slog.d(TAG, "updateSignalStrength: no service");
if (Settings.System.getInt(mContext.getContentResolver(),
Settings.System.AIRPLANE_MODE_ON, 0) == 1) {