Don't get the engine to get the view

This commit is contained in:
Nathan Kerr
2019-11-08 07:45:16 -08:00
parent 8ad9802ea6
commit 8d523e638e
3 changed files with 5 additions and 5 deletions

View File

@@ -173,7 +173,7 @@ public class BackgroundModeExt extends CordovaPlugin {
try {
Thread.sleep(1000);
getApp().runOnUiThread(() -> {
View view = webView.getEngine().getView();
View view = webView.getView();
try {
Class.forName("org.crosswalk.engine.XWalkCordovaView")