From 238739bdf5bc2100510d38807115431b5fb5f8b3 Mon Sep 17 00:00:00 2001 From: John Reck Date: Fri, 22 Jul 2011 11:27:00 -0700 Subject: 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 --- src/com/android/browser/GoogleAccountLogin.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/com/android/browser/GoogleAccountLogin.java') diff --git a/src/com/android/browser/GoogleAccountLogin.java b/src/com/android/browser/GoogleAccountLogin.java index 3b4f2aa87..93996cdb1 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 -- cgit v1.2.3