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

Commit b4c2c7dd authored by kun.tang's avatar kun.tang
Browse files

Unregister receiver when SIMRecords dispose.

To make object normally released, receiver should be unregistered when SIMRecords dispose.
Test:Build

Change-Id: Ia396642ca61b60d61a330bde8fd6556666cb1ae0
parent 0624b77b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -251,6 +251,7 @@ public class SIMRecords extends IccRecords {
        mCi.unSetOnSmsOnSim(this);
        mParentApp.unregisterForReady(this);
        mParentApp.unregisterForLocked(this);
        mContext.unregisterReceiver(mReceiver);
        resetRecords();
        super.dispose();
    }