diff options
author | John Reck <jreck@google.com> | 2011-07-22 11:27:00 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-07-22 11:27:00 -0700 |
commit | 238739bdf5bc2100510d38807115431b5fb5f8b3 (patch) | |
tree | bb5f722b9832456c938ec99fc222c7d2a0608306 /src/com/android/browser | |
parent | b765583492ef90c163b61588d16789d58f941b7b (diff) | |
download | packages_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
Diffstat (limited to 'src/com/android/browser')
-rw-r--r-- | src/com/android/browser/GoogleAccountLogin.java | 11 |
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 |