summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-06-29 11:35:32 -0700
committerJohn Reck <jreck@google.com>2011-06-29 11:35:32 -0700
commit474c927a76d4a6b12e942ba4bde3a7db18a1a332 (patch)
tree3c1b1c74724ab5f11bfbaafe7dc1000d37722bb3 /src
parent749b93662b6c3152899d91dbd80139224dc46961 (diff)
downloadpackages_apps_Browser-474c927a76d4a6b12e942ba4bde3a7db18a1a332.zip
packages_apps_Browser-474c927a76d4a6b12e942ba4bde3a7db18a1a332.tar.gz
packages_apps_Browser-474c927a76d4a6b12e942ba4bde3a7db18a1a332.tar.bz2
Fix wrong thread issue
Bug: 4971133 Change-Id: I40ecdf4ff6c27d3eb9f4f55360552030b215913f
Diffstat (limited to 'src')
-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();
+ }
+ });
}
}