am 35066219: Merge "Fix network name not showing in QS sometimes" into mnc-dev
* commit '350662197542d406df58aa65afddc9e23f9309d3': Fix network name not showing in QS sometimes
This commit is contained in:
@@ -25,6 +25,7 @@ import android.telephony.SignalStrength;
|
|||||||
import android.telephony.SubscriptionInfo;
|
import android.telephony.SubscriptionInfo;
|
||||||
import android.telephony.SubscriptionManager;
|
import android.telephony.SubscriptionManager;
|
||||||
import android.telephony.TelephonyManager;
|
import android.telephony.TelephonyManager;
|
||||||
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.util.SparseArray;
|
import android.util.SparseArray;
|
||||||
|
|
||||||
@@ -389,7 +390,7 @@ public class MobileSignalController extends SignalController<
|
|||||||
}
|
}
|
||||||
// Fill in the network name if we think we have it.
|
// Fill in the network name if we think we have it.
|
||||||
if (mCurrentState.networkName == mNetworkNameDefault && mServiceState != null
|
if (mCurrentState.networkName == mNetworkNameDefault && mServiceState != null
|
||||||
&& mServiceState.getOperatorAlphaShort() != null) {
|
&& !TextUtils.isEmpty(mServiceState.getOperatorAlphaShort())) {
|
||||||
mCurrentState.networkName = mServiceState.getOperatorAlphaShort();
|
mCurrentState.networkName = mServiceState.getOperatorAlphaShort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user