Merge "[Telephony Setting] Add supplementary conditions for CDMA display IMEI info when subscriptionInfo is null" into qt-qpr1-dev
This commit is contained in:
@@ -119,7 +119,8 @@ public class ImeiInfoDialogController {
|
||||
|
||||
mDialog.setText(ID_PRL_VERSION_VALUE, getCdmaPrlVersion());
|
||||
|
||||
if (mSubscriptionInfo != null && isCdmaLteEnabled()) {
|
||||
if ((mSubscriptionInfo != null && isCdmaLteEnabled()) ||
|
||||
(mSubscriptionInfo == null && isSimPresent(mSlotId))) {
|
||||
// Show IMEI for LTE device
|
||||
mDialog.setText(ID_IMEI_VALUE,
|
||||
getTextAsDigits(mTelephonyManager.getImei(mSlotId)));
|
||||
@@ -151,6 +152,15 @@ public class ImeiInfoDialogController {
|
||||
== PhoneConstants.LTE_ON_CDMA_TRUE;
|
||||
}
|
||||
|
||||
boolean isSimPresent(int slotId) {
|
||||
final int simState = mTelephonyManager.getSimState(slotId);
|
||||
if ((simState != TelephonyManager.SIM_STATE_ABSENT) &&
|
||||
(simState != TelephonyManager.SIM_STATE_UNKNOWN)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
String getMeid() {
|
||||
return mTelephonyManager.getMeid(mSlotId);
|
||||
|
Reference in New Issue
Block a user