You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/01/27 03:28:35 UTC
[jira] [Commented] (CB-7947) pauseTimers() called too aggressively
on Android
[ https://issues.apache.org/jira/browse/CB-7947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14292868#comment-14292868 ]
ASF subversion and git services commented on CB-7947:
-----------------------------------------------------
Commit b59705bed4101e075e95bd01d616f617429091c4 in cordova-android's branch refs/heads/4.0.x from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;h=b59705b ]
CB-7947 Don't force-pauseTimers() for startActivityForResult
> pauseTimers() called too aggressively on Android
> ------------------------------------------------
>
> Key: CB-7947
> URL: https://issues.apache.org/jira/browse/CB-7947
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Reporter: Andrew Grieve
> Assignee: Andrew Grieve
>
> ML discussion: http://markmail.org/thread/dhs7lnnrhq6z24vb
> Couple of issues:
> 1. pauseTimers(), although an instance method, actually applies to all webviews
> 2. pauseTimers() is always being called during startActivityForResult(), even though there's no reason to do this.
> Proposed changes:
> - Pause timers during a startActivityForResult only when KeepRunning preference is false (this should happen anyways, since the activity's onPause is fired in this case)
> - 4.0.x branch: Create a setGloballyPauseTimers(boolean) on CordovaWebview interface in 4.0.x that is documented to have the same semantics as WebView.pause/resume timers.
> - 4.0.x branch: Move the pausing & resuming into CordovaActivity, rather than passing it as a boolean to the onPause() function
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org