Merge "Remove callbacks and messages in onDestroy()." into rvc-dev-plus-aosp
This commit is contained in:
committed by
Android (Google) Code Review
commit
e86b1a1574
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user