Skip to content

Commit

Permalink
fix(android): call WebView.stopLoading() from main thread (#11170)
Browse files Browse the repository at this point in the history
* fix(android): call WebView.stopLoading() from main thread

* fix(android): use WebView handler

* fix(android): remove unused imports
  • Loading branch information
garymathews authored and ssekhri committed Sep 13, 2019
1 parent 0e21a4f commit 438a43a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,13 @@ public void reload()

public void stopLoading()
{
getWebView().stopLoading();
getWebView().getHandler().post(new Runnable() {
@Override
public void run()
{
getWebView().stopLoading();
}
});
}

public boolean shouldInjectBindingCode()
Expand Down

0 comments on commit 438a43a

Please sign in to comment.