summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/SettingsLicenseActivity.java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2011-11-11 13:25:07 -0800
committerAmith Yamasani <yamasani@google.com>2011-11-14 15:30:16 -0800
commitc101d2d3babd9e456666e6dbc87e7aefa6d27795 (patch)
tree4781690eda76c977048fa0d9e52a22623fbdd1da /src/com/android/settings/SettingsLicenseActivity.java
parent4b94e073854b72205f12ff268211a51d634fbc8f (diff)
downloadpackages_apps_Settings-c101d2d3babd9e456666e6dbc87e7aefa6d27795.tar.gz
packages_apps_Settings-c101d2d3babd9e456666e6dbc87e7aefa6d27795.tar.bz2
packages_apps_Settings-c101d2d3babd9e456666e6dbc87e7aefa6d27795.zip
Dismiss dialogs properly on closing.
Also make the invisible activity truly invisible (was showing a blue line behind the dialog). Bug: 5572140 Change-Id: I67b31f0682f189c7075011e0dd0660b0fbc543d9
Diffstat (limited to 'src/com/android/settings/SettingsLicenseActivity.java')
-rw-r--r--src/com/android/settings/SettingsLicenseActivity.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/android/settings/SettingsLicenseActivity.java b/src/com/android/settings/SettingsLicenseActivity.java
index 29601801a..b9efa724b 100644
--- a/src/com/android/settings/SettingsLicenseActivity.java
+++ b/src/com/android/settings/SettingsLicenseActivity.java
@@ -173,10 +173,13 @@ public class SettingsLicenseActivity extends Activity {
@Override
protected void onDestroy() {
- super.onDestroy();
- if (mTextDlg != null) {
+ if (mTextDlg != null && mTextDlg.isShowing()) {
mTextDlg.dismiss();
}
+ if (mSpinnerDlg != null && mSpinnerDlg.isShowing()) {
+ mSpinnerDlg.dismiss();
+ }
+ super.onDestroy();
}
private void showPageOfText(String text) {
@@ -200,9 +203,7 @@ public class SettingsLicenseActivity extends Activity {
@Override
public void onPageFinished(WebView view, String url) {
mSpinnerDlg.dismiss();
- mSpinnerDlg = null;
mTextDlg.show();
- mTextDlg = null;
}
});