Merge "Fix 6804479: "Emergency calls only" in notification shade" into jb-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3ee47ae7ee
@@ -932,10 +932,12 @@ public class NetworkController extends BroadcastReceiver {
|
|||||||
|
|
||||||
if (mDataConnected) {
|
if (mDataConnected) {
|
||||||
mobileLabel = mNetworkName;
|
mobileLabel = mNetworkName;
|
||||||
} else if (mConnected) {
|
} else if (mConnected || mServiceState.isEmergencyOnly()) {
|
||||||
if (hasService()) {
|
if (hasService() || mServiceState.isEmergencyOnly()) {
|
||||||
|
// The isEmergencyOnly test covers the case of a phone with no SIM
|
||||||
mobileLabel = mNetworkName;
|
mobileLabel = mNetworkName;
|
||||||
} else {
|
} else {
|
||||||
|
// Tablets, basically
|
||||||
mobileLabel = "";
|
mobileLabel = "";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user