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 e98f6ae570
commit 629e05b7b1

View File

@ -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();
}
});
}
/**