cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-4560) Android call to pauseTimers might not pause timers
Date Thu, 22 Aug 2013 00:10:52 GMT

     [ https://issues.apache.org/jira/browse/CB-4560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Joe Bowser resolved CB-4560.
----------------------------

    Resolution: Invalid

This isn't a real bug. You either want your app to run in the background or you don't. The
real bug is that pauseTimers will never work on gingerbread and we can't do anything about
that.
                
> Android call to pauseTimers might not pause timers
> --------------------------------------------------
>
>                 Key: CB-4560
>                 URL: https://issues.apache.org/jira/browse/CB-4560
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.9.0
>         Environment: GingerBread devices
>            Reporter: Peter
>            Assignee: Joe Bowser
>
> Older Android versions (eg GINGERBREAD) had some quirk where the API pauseTimers/resumeTimers
was controlled by an internal reference counter.
> Refer to http://grepcode.com/file_/repository.grepcode.com/java/ext/com.google.android/android/4.0.1_r1/android/webkit/JWebCoreJavaBridge.java/?v=diff&id2=2.3.3_r1

> It means that unless the pauseTimers/ResumeTimers were carefully balanced then calling
these API methods might not actually be doing what the caller expects. 
> The CordovaWebView.java code calls to the Android pauseTimers/resumeTimers are not balanced
(the call to pauseTimers is conditional but the call to resumeTimers is unconditional). Because
of this, there would be some scenario where resumeTimers gets called more times than pauseTimers,
and in such a case the pauseTimers is not actually going to do anything on a GINGERBREAD device.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message