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

Commit 1f22d778 authored by duho.ro's avatar duho.ro Committed by Vineeta Srivastava
Browse files

STK: fixing to send intent when card status changed

The intent name is not match with STK app.
Also, it should get the reference of UiccCard with its own slot id.
It affects with install and uninstall STK app when card status changed.

Bug: 17463742
Bug: 16148051

Change-Id: I9a4bab72411fce39846d7d11e6a15519d58c1d7a
parent 5d8a08eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ public interface AppInterface {
    public static final String CARD_STATUS = "card_status";
    //Intent's actions are broadcasted by Telephony once IccRefresh occurs.
    public static final String CAT_ICC_STATUS_CHANGE =
                                    "org.codeaurora.intent.action.stk.icc_status_change";
                                    "android.intent.action.stk.icc_status_change";

    /*
     * Callback function from app to telephony to pass a result code and user's
+1 −1
Original line number Diff line number Diff line
@@ -918,7 +918,7 @@ public class CatService extends Handler implements AppInterface {
        }

        CardState newState = CardState.CARDSTATE_ABSENT;
        UiccCard newCard = mUiccController.getUiccCard();
        UiccCard newCard = mUiccController.getUiccCard(mSlotId);
        if (newCard != null) {
            newState = newCard.getCardState();
        }