am c524ca27: Merge "Fix NPE on some phones at startup." into jb-dev
* commit 'c524ca275add1c84ef4e1e5c105058f44cac5efb': Fix NPE on some phones at startup.
This commit is contained in:
@@ -920,6 +920,7 @@ public class NetworkController extends BroadcastReceiver {
|
||||
String wifiLabel = "";
|
||||
String mobileLabel = "";
|
||||
int N;
|
||||
final boolean emergencyOnly = (mServiceState != null && mServiceState.isEmergencyOnly());
|
||||
|
||||
if (!mHasMobileDataFeature) {
|
||||
mDataSignalIconId = mPhoneSignalIconId = 0;
|
||||
@@ -935,8 +936,8 @@ public class NetworkController extends BroadcastReceiver {
|
||||
|
||||
if (mDataConnected) {
|
||||
mobileLabel = mNetworkName;
|
||||
} else if (mConnected || mServiceState.isEmergencyOnly()) {
|
||||
if (hasService() || mServiceState.isEmergencyOnly()) {
|
||||
} else if (mConnected || emergencyOnly) {
|
||||
if (hasService() || emergencyOnly) {
|
||||
// The isEmergencyOnly test covers the case of a phone with no SIM
|
||||
mobileLabel = mNetworkName;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user