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

Commit 2f8c7afd authored by Xiangyu/Malcolm Chen's avatar Xiangyu/Malcolm Chen Committed by Gerrit Code Review
Browse files

Merge "Fix bug that UiccSlot#isStateUnknown returns true in ABSENT state."

parents 16b9bc95 0cdccedb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -179,8 +179,8 @@ public class UiccSlot extends Handler {
        // no card present in the slot now; dispose card and make mUiccCard null
        if (mUiccCard != null) {
            mUiccCard.dispose();
            nullifyUiccCard(false /* sim state is not unknown */);
        }
        nullifyUiccCard(false /* sim state is not unknown */);
        mLastRadioState = radioState;
    }

@@ -193,7 +193,7 @@ public class UiccSlot extends Handler {
    }

    public boolean isStateUnknown() {
        return mStateIsUnknown;
        return (mCardState == null || mCardState == CardState.CARDSTATE_ABSENT) && mStateIsUnknown;
    }

    private void checkIsEuiccSupported() {