summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-07-22 11:27:00 -0700
committerJohn Reck <jreck@google.com>2011-07-22 11:27:00 -0700
commit238739bdf5bc2100510d38807115431b5fb5f8b3 (patch)
treebb5f722b9832456c938ec99fc222c7d2a0608306
parentb765583492ef90c163b61588d16789d58f941b7b (diff)
downloadpackages_apps_Browser-238739bdf5bc2100510d38807115431b5fb5f8b3.zip
packages_apps_Browser-238739bdf5bc2100510d38807115431b5fb5f8b3.tar.gz
packages_apps_Browser-238739bdf5bc2100510d38807115431b5fb5f8b3.tar.bz2
Fix autologin crash by removing cleverness
Bug: 5007226 The delay dismissing of the dialog opened a situation where the dialog would attempt to be dismissed after the activity was destroyed. This just removes the cleverness (which we can revisit later) Change-Id: I2bde130f5ffe31f5d33db7f107c42e881fea1d45
-rw-r--r--src/com/android/browser/GoogleAccountLogin.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/com/android/browser/GoogleAccountLogin.java b/src/com/android/browser/GoogleAccountLogin.java
index 3b4f2aa..93996cd 100644
--- a/src/com/android/browser/GoogleAccountLogin.java
+++ b/src/com/android/browser/GoogleAccountLogin.java
@@ -281,16 +281,7 @@ public class GoogleAccountLogin implements Runnable,
Log.d(LOGTAG, "Finished login attempt for " + mAccount.name);
mActivity.runOnUiThread(mRunnable);
- // Post a delayed message to dismiss the dialog in order to avoid a
- // flash of the progress dialog.
- mHandler.postDelayed(new Runnable() {
- @Override
- public void run() {
- if (mProgressDialog.isShowing()) {
- mProgressDialog.dismiss();
- }
- }
- }, 2000);
+ mProgressDialog.dismiss();
mRunnable = null;
mActivity.runOnUiThread(new Runnable() {
@Override