cordova-issues mailing list archives

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


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
> Android call to pauseTimers might not pause timers
> --------------------------------------------------
>                 Key: CB-4560
>                 URL:
>             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

> 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 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:

View raw message