Don't get the engine to get the view
This commit is contained in:
parent
8ad9802ea6
commit
8d523e638e
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cordova-plugin-background-mode",
|
"name": "cordova-plugin-background-mode",
|
||||||
"version": "0.7.2",
|
"version": "0.7.3",
|
||||||
"description": "Prevent apps from going to sleep in background.",
|
"description": "Prevent apps from going to sleep in background.",
|
||||||
"cordova": {
|
"cordova": {
|
||||||
"id": "cordova-plugin-background-mode",
|
"id": "cordova-plugin-background-mode",
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
id="cordova-plugin-background-mode"
|
id="cordova-plugin-background-mode"
|
||||||
version="0.7.2">
|
version="0.7.3">
|
||||||
|
|
||||||
<name>BackgroundMode</name>
|
<name>BackgroundMode</name>
|
||||||
|
|
||||||
<description>Prevent apps from going to sleep in background.</description>
|
<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>
|
<keywords>appplant, background</keywords>
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@ public class BackgroundModeExt extends CordovaPlugin {
|
|||||||
try {
|
try {
|
||||||
Thread.sleep(1000);
|
Thread.sleep(1000);
|
||||||
getApp().runOnUiThread(() -> {
|
getApp().runOnUiThread(() -> {
|
||||||
View view = webView.getEngine().getView();
|
View view = webView.getView();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Class.forName("org.crosswalk.engine.XWalkCordovaView")
|
Class.forName("org.crosswalk.engine.XWalkCordovaView")
|
||||||
|
Loading…
Reference in New Issue
Block a user