Dismiss the dialog in onDestroy so that it doesn't leak on orientation change or other transitions.

This commit is contained in:
Amith Yamasani
2009-04-15 14:42:32 -07:00
parent 69720d1db3
commit 519e321609

View File

@@ -52,6 +52,14 @@ public class ApplicationSettings extends PreferenceActivity implements
}
}
@Override
protected void onDestroy() {
super.onDestroy();
if (mWarnInstallApps != null) {
mWarnInstallApps.dismiss();
}
}
@Override
public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
if (preference == mToggleAppInstallation) {