Permalink
Browse files

Change hide() to dismiss() to avoid memory leak.

Change-Id: I4a5acb123c673c75a48c3e77566cdca4760d8576
  • Loading branch information...
1 parent 5a233c1 commit 3cbc3b8549fc7c0ee8e1d926f2235780ef993329 Yuling Liu committed with Johan Redestig Nov 9, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 phone/com/android/internal/policy/impl/SimUnlockScreen.java
@@ -130,9 +130,10 @@ public void onResume() {
/** {@inheritDoc} */
public void cleanUp() {
- // hide the dialog.
+ // dismiss the dialog.
if (mSimUnlockProgressDialog != null) {
- mSimUnlockProgressDialog.hide();
+ mSimUnlockProgressDialog.dismiss();
+ mSimUnlockProgressDialog = null;
}
mUpdateMonitor.removeCallback(this);
}

0 comments on commit 3cbc3b8

Please sign in to comment.