summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-06-29 13:02:36 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-06-29 13:02:36 -0700
commit9b0a25cd743153261376ca4d7abcb8b56854c695 (patch)
treec5e898a3eb90b7e48750edbd8f2b5e4ca5ef71e1 /src/com/android
parent075d493d738fc43bfb6bff56fa302bcb1d5ab7e7 (diff)
parent474c927a76d4a6b12e942ba4bde3a7db18a1a332 (diff)
downloadpackages_apps_browser-9b0a25cd743153261376ca4d7abcb8b56854c695.zip
packages_apps_browser-9b0a25cd743153261376ca4d7abcb8b56854c695.tar.gz
packages_apps_browser-9b0a25cd743153261376ca4d7abcb8b56854c695.tar.bz2
Merge "Fix wrong thread issue"
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/browser/GoogleAccountLogin.java9
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();
+ }
+ });
}
}