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

Commit 93fb68fd authored by Jason Monk's avatar Jason Monk
Browse files

Fix network name not showing in QS sometimes

Only set the network name from service state if we are sure we
a value for it.

Bug: 22212693
Change-Id: I0811e8fe4682180d9187c42362bc40ab19922f2c
parent 29cf9aea
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.telephony.SignalStrength;
import android.telephony.SubscriptionInfo;
import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.Log;
import android.util.SparseArray;

@@ -389,7 +390,7 @@ public class MobileSignalController extends SignalController<
        }
        // Fill in the network name if we think we have it.
        if (mCurrentState.networkName == mNetworkNameDefault && mServiceState != null
                && mServiceState.getOperatorAlphaShort() != null) {
                && !TextUtils.isEmpty(mServiceState.getOperatorAlphaShort())) {
            mCurrentState.networkName = mServiceState.getOperatorAlphaShort();
        }