You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2014/05/22 21:00:55 UTC
android commit: CB-6315: Wrapping this so it runs on the UI thread
Repository: cordova-android
Updated Branches:
refs/heads/master e98f6ae57 -> 629e05b7b
CB-6315: Wrapping this so it runs on the UI thread
Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/629e05b7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/629e05b7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/629e05b7
Branch: refs/heads/master
Commit: 629e05b7b1c93108bcdb992f9e7f22656b43cff9
Parents: e98f6ae
Author: Joe Bowser <bo...@apache.org>
Authored: Thu May 22 12:00:11 2014 -0700
Committer: Joe Bowser <bo...@apache.org>
Committed: Thu May 22 12:00:42 2014 -0700
----------------------------------------------------------------------
framework/src/org/apache/cordova/App.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-android/blob/629e05b7/framework/src/org/apache/cordova/App.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/App.java b/framework/src/org/apache/cordova/App.java
index ead99bc..4b15906 100755
--- a/framework/src/org/apache/cordova/App.java
+++ b/framework/src/org/apache/cordova/App.java
@@ -190,7 +190,11 @@ public class App extends CordovaPlugin {
* Clear page history for the app.
*/
public void clearHistory() {
- this.webView.clearHistory();
+ cordova.getActivity().runOnUiThread(new Runnable() {
+ public void run() {
+ webView.clearHistory();
+ }
+ });
}
/**