diff options
author | Yuling Liu <yuling.liu@sonyericsson.com> | 2010-11-09 09:14:34 +0100 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2010-11-17 18:05:26 -0800 |
commit | 7dda196e34c6c51bd219c79e8087f1d83cbbe8c3 (patch) | |
tree | a3062c82e4e00b262cde189b00527b6e6d390f7c /policy/src | |
parent | d80661c129010f89e3b305797e1712f3d3481467 (diff) | |
download | frameworks_base-7dda196e34c6c51bd219c79e8087f1d83cbbe8c3.zip frameworks_base-7dda196e34c6c51bd219c79e8087f1d83cbbe8c3.tar.gz frameworks_base-7dda196e34c6c51bd219c79e8087f1d83cbbe8c3.tar.bz2 |
Change hide() to dismiss() to avoid memory leak.
Change-Id: I4a5acb123c673c75a48c3e77566cdca4760d8576
Diffstat (limited to 'policy/src')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/SimUnlockScreen.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/policy/src/com/android/internal/policy/impl/SimUnlockScreen.java b/policy/src/com/android/internal/policy/impl/SimUnlockScreen.java index 5518e11..486e7aa 100644 --- a/policy/src/com/android/internal/policy/impl/SimUnlockScreen.java +++ b/policy/src/com/android/internal/policy/impl/SimUnlockScreen.java @@ -130,9 +130,10 @@ public class SimUnlockScreen extends LinearLayout implements KeyguardScreen, Vie /** {@inheritDoc} */ public void cleanUp() { - // hide the dialog. + // dismiss the dialog. if (mSimUnlockProgressDialog != null) { - mSimUnlockProgressDialog.hide(); + mSimUnlockProgressDialog.dismiss(); + mSimUnlockProgressDialog = null; } mUpdateMonitor.removeCallback(this); } |