incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject android commit: Fix for CB-1257
Date Fri, 17 Aug 2012 21:35:18 GMT
Updated Branches:
  refs/heads/master 1b33dbe2a -> 1d28506b0


Fix for CB-1257


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/1d28506b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/1d28506b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/1d28506b

Branch: refs/heads/master
Commit: 1d28506b0993d41ea7bfd0de4cd3ebfeac4e638e
Parents: 1b33dbe
Author: Joe Bowser <bowserj@apache.org>
Authored: Fri Aug 17 14:35:08 2012 -0700
Committer: Joe Bowser <bowserj@apache.org>
Committed: Fri Aug 17 14:35:08 2012 -0700

----------------------------------------------------------------------
 framework/src/org/apache/cordova/App.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/1d28506b/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 dbc8909..7bdf116 100755
--- a/framework/src/org/apache/cordova/App.java
+++ b/framework/src/org/apache/cordova/App.java
@@ -176,7 +176,11 @@ public class App extends Plugin {
      * This is the same as pressing the backbutton on Android device.
      */
     public void backHistory() {
-        this.webView.backHistory();
+        cordova.getActivity().runOnUiThread(new Runnable() {
+            public void run() {
+                webView.backHistory();
+            }
+        });
     }
 
     /**


Mime
View raw message