Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7461c9e3 authored by Joe Onorato's avatar Joe Onorato Committed by Android Git Automerger
Browse files

am 999d483b: am 49a8bbf4: Don\'t crash if we\'ve never gotten a signal strength update.

Merge commit '999d483b'

* commit '999d483b':
  Don't crash if we've never gotten a signal strength update.
parents 3611a0ef 999d483b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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) {