Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d01228c authored by Amit Mahajan's avatar Amit Mahajan Committed by Automerger Merge Worker
Browse files

Merge "Fix wrong SIM application type" am: ae3db6a1 am: 02da01ea am:...

Merge "Fix wrong SIM application type" am: ae3db6a1 am: 02da01ea am: 1e92b658 am: 308c7ca5 am: 65b8e9e4

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1371696

Change-Id: Ib6cd013817d518cef1c0326cf823dc1dd09f6d2b
parents e3a60537 65b8e9e4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -141,6 +141,7 @@ public class UiccProfile extends IccCard {

    @VisibleForTesting
    public int mCurrentAppType = UiccController.APP_FAM_3GPP; //default to 3gpp?
    private int mRadioTech = ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN;
    private UiccCardApplication mUiccApplication = null;
    private IccRecords mIccRecords = null;
    private IccCardConstants.State mExternalState = IccCardConstants.State.UNKNOWN;
@@ -340,6 +341,7 @@ public class UiccProfile extends IccCard {
            }
            mCatService = null;
            mUiccApplications = null;
            mRadioTech = ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN;
            mCarrierPrivilegeRules = null;
            mContext.getContentResolver().unregisterContentObserver(
                    mProvisionCompleteContentObserver);
@@ -356,6 +358,7 @@ public class UiccProfile extends IccCard {
            if (DBG) {
                log("Setting radio tech " + ServiceState.rilRadioTechnologyToString(radioTech));
            }
            mRadioTech = radioTech;
            setCurrentAppType(ServiceState.isGsm(radioTech));
            updateIccAvailability(false);
        }
@@ -1069,6 +1072,9 @@ public class UiccProfile extends IccCard {
            }

            sanitizeApplicationIndexesLocked();
            if (mRadioTech != ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN) {
                setCurrentAppType(ServiceState.isGsm(mRadioTech));
            }
            updateIccAvailability(true);
        }
    }