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

@ -1,6 +1,6 @@
{
"name": "cordova-plugin-background-mode",
"version": "0.7.2",
"version": "0.7.3",
"description": "Prevent apps from going to sleep in background.",
"cordova": {
"id": "cordova-plugin-background-mode",
@ -42,4 +42,4 @@
"url": "https://github.com/katzer/cordova-plugin-background-mode/issues"
},
"homepage": "https://github.com/katzer/cordova-plugin-background-mode#readme"
}
}

View File

@ -3,13 +3,13 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-background-mode"
version="0.7.2">
version="0.7.3">
<name>BackgroundMode</name>
<description>Prevent apps from going to sleep in background.</description>
<repo>https://github.com/katzer/cordova-plugin-background-mode.git</repo>
<repo>https://bitbucket.org:TheBosZ/cordova-plugin-run-in-background.git</repo>
<keywords>appplant, background</keywords>

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")