diff options
author | John Reck <jreck@google.com> | 2011-06-29 13:02:36 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-06-29 13:02:36 -0700 |
commit | 9b0a25cd743153261376ca4d7abcb8b56854c695 (patch) | |
tree | c5e898a3eb90b7e48750edbd8f2b5e4ca5ef71e1 | |
parent | 075d493d738fc43bfb6bff56fa302bcb1d5ab7e7 (diff) | |
parent | 474c927a76d4a6b12e942ba4bde3a7db18a1a332 (diff) | |
download | packages_apps_browser-9b0a25cd743153261376ca4d7abcb8b56854c695.zip packages_apps_browser-9b0a25cd743153261376ca4d7abcb8b56854c695.tar.gz packages_apps_browser-9b0a25cd743153261376ca4d7abcb8b56854c695.tar.bz2 |
Merge "Fix wrong thread issue"
-rw-r--r-- | src/com/android/browser/GoogleAccountLogin.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/com/android/browser/GoogleAccountLogin.java b/src/com/android/browser/GoogleAccountLogin.java index 37654dc..c7d1924 100644 --- a/src/com/android/browser/GoogleAccountLogin.java +++ b/src/com/android/browser/GoogleAccountLogin.java @@ -57,8 +57,6 @@ public class GoogleAccountLogin implements Runnable, private static final String GOOGLE = "com.google"; // Last auto login time private static final String PREF_AUTOLOGIN_TIME = "last_autologin_time"; - // A week in milliseconds (7*24*60*60*1000) - private static final long WEEK_IN_MILLIS = 604800000L; private final Activity mActivity; private final Account mAccount; @@ -294,7 +292,12 @@ public class GoogleAccountLogin implements Runnable, } }, 2000); mRunnable = null; - mWebView.destroy(); + mActivity.runOnUiThread(new Runnable() { + @Override + public void run() { + mWebView.destroy(); + } + }); } } |