From 37384c583d5a2e5b9b5c5d2cbf150f07f329d16c Mon Sep 17 00:00:00 2001 From: Simon Pireyn Date: Thu, 29 Sep 2016 14:47:19 +0200 Subject: [PATCH] CB-11935 Does a best-effort attempt to pause any processing that can be paused safely, such as animations and geolocation. This closes #337 --- .../src/org/apache/cordova/engine/SystemWebViewEngine.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java b/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java index 84cb05ac..0fa02767 100755 --- a/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java +++ b/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java @@ -315,8 +315,10 @@ public class SystemWebViewEngine implements CordovaWebViewEngine { @Override public void setPaused(boolean value) { if (value) { + webView.onPause(); webView.pauseTimers(); } else { + webView.onResume(); webView.resumeTimers(); } }