Show the license dialog only if the activity is still showing

Bug: 6888990
Change-Id: Ide267739c7fd296356f26293f02bd794906fbd0a
This commit is contained in:
Amith Yamasani
2012-08-23 11:25:18 -07:00
parent b18d58bdf5
commit cd98f810f5

View File

@@ -203,7 +203,9 @@ public class SettingsLicenseActivity extends Activity {
@Override
public void onPageFinished(WebView view, String url) {
mSpinnerDlg.dismiss();
mTextDlg.show();
if (SettingsLicenseActivity.this.isResumed()) {
mTextDlg.show();
}
}
});