You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2016/10/03 23:17:08 UTC
android commit: CB-11935 Does a best-effort attempt to pause any
processing that can be paused safely, such as animations and geolocation.
Repository: cordova-android
Updated Branches:
refs/heads/master 9544783b5 -> 37384c583
CB-11935 Does a best-effort attempt to pause any processing that can be paused safely, such as animations and geolocation.
This closes #337
Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/37384c58
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/37384c58
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/37384c58
Branch: refs/heads/master
Commit: 37384c583d5a2e5b9b5c5d2cbf150f07f329d16c
Parents: 9544783
Author: Simon Pireyn <sp...@gmail.com>
Authored: Thu Sep 29 14:47:19 2016 +0200
Committer: Joe Bowser <bo...@apache.org>
Committed: Mon Oct 3 16:16:52 2016 -0700
----------------------------------------------------------------------
framework/src/org/apache/cordova/engine/SystemWebViewEngine.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-android/blob/37384c58/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java b/framework/src/org/apache/cordova/engine/SystemWebViewEngine.java
index 84cb05a..0fa0276 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();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org