Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +15 −11 Original line number Diff line number Diff line Loading @@ -496,7 +496,10 @@ public class PhoneStatusBar extends BaseStatusBar { mNetworkController.addSignalCluster(signalCluster); signalCluster.setNetworkController(mNetworkController); mEmergencyCallLabel = (TextView)mStatusBarWindow.findViewById(R.id.emergency_calls_only); final boolean isAPhone = mNetworkController.hasVoiceCallingFeature(); if (isAPhone) { mEmergencyCallLabel = (TextView) mStatusBarWindow.findViewById(R.id.emergency_calls_only); if (mEmergencyCallLabel != null) { mNetworkController.addEmergencyLabelView(mEmergencyCallLabel); mEmergencyCallLabel.setOnClickListener(new View.OnClickListener() { Loading @@ -508,6 +511,7 @@ public class PhoneStatusBar extends BaseStatusBar { updateCarrierLabelVisibility(false); }}); } } mCarrierLabel = (TextView)mStatusBarWindow.findViewById(R.id.carrier_label); mShowCarrierInPanel = (mCarrierLabel != null); Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java +6 −0 Original line number Diff line number Diff line Loading @@ -263,6 +263,10 @@ public class NetworkController extends BroadcastReceiver { return mHasMobileDataFeature; } public boolean hasVoiceCallingFeature() { return mPhone.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE; } public boolean isEmergencyOnly() { return (mServiceState != null && mServiceState.isEmergencyOnly()); } Loading Loading @@ -1377,6 +1381,8 @@ public class NetworkController extends BroadcastReceiver { mConnected?"CONNECTED":"DISCONNECTED", mConnectedNetworkType, mConnectedNetworkTypeName)); pw.println(" - telephony ------"); pw.print(" hasVoiceCallingFeature()="); pw.println(hasVoiceCallingFeature()); pw.print(" hasService()="); pw.println(hasService()); pw.print(" mHspaDataDistinguishable="); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +15 −11 Original line number Diff line number Diff line Loading @@ -496,7 +496,10 @@ public class PhoneStatusBar extends BaseStatusBar { mNetworkController.addSignalCluster(signalCluster); signalCluster.setNetworkController(mNetworkController); mEmergencyCallLabel = (TextView)mStatusBarWindow.findViewById(R.id.emergency_calls_only); final boolean isAPhone = mNetworkController.hasVoiceCallingFeature(); if (isAPhone) { mEmergencyCallLabel = (TextView) mStatusBarWindow.findViewById(R.id.emergency_calls_only); if (mEmergencyCallLabel != null) { mNetworkController.addEmergencyLabelView(mEmergencyCallLabel); mEmergencyCallLabel.setOnClickListener(new View.OnClickListener() { Loading @@ -508,6 +511,7 @@ public class PhoneStatusBar extends BaseStatusBar { updateCarrierLabelVisibility(false); }}); } } mCarrierLabel = (TextView)mStatusBarWindow.findViewById(R.id.carrier_label); mShowCarrierInPanel = (mCarrierLabel != null); Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java +6 −0 Original line number Diff line number Diff line Loading @@ -263,6 +263,10 @@ public class NetworkController extends BroadcastReceiver { return mHasMobileDataFeature; } public boolean hasVoiceCallingFeature() { return mPhone.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE; } public boolean isEmergencyOnly() { return (mServiceState != null && mServiceState.isEmergencyOnly()); } Loading Loading @@ -1377,6 +1381,8 @@ public class NetworkController extends BroadcastReceiver { mConnected?"CONNECTED":"DISCONNECTED", mConnectedNetworkType, mConnectedNetworkTypeName)); pw.println(" - telephony ------"); pw.print(" hasVoiceCallingFeature()="); pw.println(hasVoiceCallingFeature()); pw.print(" hasService()="); pw.println(hasService()); pw.print(" mHspaDataDistinguishable="); Loading