mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-14 11:34:54 +00:00
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",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user