From 8d523e638e62a09a630d91878f2dbeb44a4c621e Mon Sep 17 00:00:00 2001 From: Nathan Kerr Date: Fri, 8 Nov 2019 07:45:16 -0800 Subject: [PATCH] Don't get the engine to get the view --- package.json | 4 ++-- plugin.xml | 4 ++-- src/android/BackgroundModeExt.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index ebbedf3..e41184f 100644 --- a/package.json +++ b/package.json @@ -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" -} \ No newline at end of file +} diff --git a/plugin.xml b/plugin.xml index ee45773..f4b8275 100644 --- a/plugin.xml +++ b/plugin.xml @@ -3,13 +3,13 @@ + version="0.7.3"> BackgroundMode Prevent apps from going to sleep in background. - https://github.com/katzer/cordova-plugin-background-mode.git + https://bitbucket.org:TheBosZ/cordova-plugin-run-in-background.git appplant, background diff --git a/src/android/BackgroundModeExt.java b/src/android/BackgroundModeExt.java index 25965e4..d8ed1a1 100644 --- a/src/android/BackgroundModeExt.java +++ b/src/android/BackgroundModeExt.java @@ -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")