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

Commit 8fdd68af authored by Amit Mahajan's avatar Amit Mahajan Committed by Android Git Automerger
Browse files

am 283b98ea: Merge "Notify registrant (phone) of Icc event on registration." into lmp-dev

* commit '283b98ea':
  Notify registrant (phone) of Icc event on registration.
parents 72a020b1 283b98ea
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -214,6 +214,11 @@ public abstract class IccRecords extends Handler implements IccConstants {
    public void registerForRecordsEvents(Handler h, int what, Object obj) {
        Registrant r = new Registrant (h, what, obj);
        mRecordsEventsRegistrants.add(r);

        /* Notify registrant of all the possible events. This is to make sure registrant is
        notified even if event occurred in the past. */
        r.notifyResult(EVENT_MWI);
        r.notifyResult(EVENT_CFI);
    }
    public void unregisterForRecordsEvents(Handler h) {
        mRecordsEventsRegistrants.remove(h);