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

Commit 0db6895a authored by Matthew Mintz's avatar Matthew Mintz Committed by Automerger Merge Worker
Browse files

Merge "Remove callbacks and messages in onDestroy()." into rvc-dev-plus-aosp...

Merge "Remove callbacks and messages in onDestroy()." into rvc-dev-plus-aosp am: e86b1a15 am: 0d862123

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12202965

Change-Id: I30af68c835fc4252303a0899aca2951e9d31bb8a
parents f845890a 0d862123
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -333,6 +333,9 @@ public final class RingtonePickerActivity extends AlertActivity implements

    @Override
    public void onDestroy() {
        if (mHandler != null) {
            mHandler.removeCallbacksAndMessages(null);
        }
        if (mCursor != null) {
            mCursor.close();
            mCursor = null;