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

Commit 1e5b77f7 authored by Wenyi Wang's avatar Wenyi Wang
Browse files

Unregister broadcast receiver when QC is destroyed

- There will be OutOfMemoryError w/o doing so.

Bug: 33203761

Test: manually verified it doesn't crash following steps to
      repro in http://b/33203761#comment5

Change-Id: I02f8cd46cfef8681b234bbed5921fe62b4581acc
parent 882dcfb5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2560,6 +2560,7 @@ public class QuickContactActivity extends ContactsActivity {

    @Override
    public void onDestroy() {
        LocalBroadcastManager.getInstance(this).unregisterReceiver(mListener);
        super.onDestroy();
    }