File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/SystemUI/src/com/android/systemui/statusbar/policy Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -920,6 +920,7 @@ void refreshViews() {
920920 String wifiLabel = "" ;
921921 String mobileLabel = "" ;
922922 int N ;
923+ final boolean emergencyOnly = (mServiceState != null && mServiceState .isEmergencyOnly ());
923924
924925 if (!mHasMobileDataFeature ) {
925926 mDataSignalIconId = mPhoneSignalIconId = 0 ;
@@ -935,8 +936,8 @@ void refreshViews() {
935936
936937 if (mDataConnected ) {
937938 mobileLabel = mNetworkName ;
938- } else if (mConnected || mServiceState . isEmergencyOnly () ) {
939- if (hasService () || mServiceState . isEmergencyOnly () ) {
939+ } else if (mConnected || emergencyOnly ) {
940+ if (hasService () || emergencyOnly ) {
940941 // The isEmergencyOnly test covers the case of a phone with no SIM
941942 mobileLabel = mNetworkName ;
942943 } else {
You can’t perform that action at this time.
0 commit comments