CB-11935 Does a best-effort attempt to pause any processing that can be paused safely, such as animations and geolocation.

This closes #337
This commit is contained in:
Simon Pireyn 2016-09-29 14:47:19 +02:00 committed by Joe Bowser
parent 9544783b5e
commit 37384c583d

View File

@ -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();
}
}