CB-6315: Wrapping this so it runs on the UI thread

This commit is contained in:
Joe Bowser 2014-05-22 12:00:11 -07:00
parent f77b20bbca
commit 404d3e0959

View File

@ -190,7 +190,11 @@ public class App extends CordovaPlugin {
* Clear page history for the app. * Clear page history for the app.
*/ */
public void clearHistory() { public void clearHistory() {
this.webView.clearHistory(); cordova.getActivity().runOnUiThread(new Runnable() {
public void run() {
webView.clearHistory();
}
});
} }
/** /**