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

Commit 1304c4aa authored by Matthew Mintz's avatar Matthew Mintz Committed by Android (Google) Code Review
Browse files

Merge "Remove callbacks and messages in onDestroy()."

parents 9dab055b 2e23b5c0
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;