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:
@@ -844,7 +844,7 @@ public class StatusBarPolicy {
|
|||||||
int[] iconList;
|
int[] iconList;
|
||||||
|
|
||||||
// Display signal strength while in "emergency calls only" mode
|
// 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");
|
//Slog.d(TAG, "updateSignalStrength: no service");
|
||||||
if (Settings.System.getInt(mContext.getContentResolver(),
|
if (Settings.System.getInt(mContext.getContentResolver(),
|
||||||
Settings.System.AIRPLANE_MODE_ON, 0) == 1) {
|
Settings.System.AIRPLANE_MODE_ON, 0) == 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user