Merge change 201 into donut

* changes:
  Dismiss the dialog in onDestroy so that it doesn't leak on orientation change or other transitions.
This commit is contained in:
Android (Google) Code Review
2009-04-20 14:45:51 -07:00

View File

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