irfan-arshad-arbisoft / mytracks

Automatically exported from code.google.com/p/mytracks
0 stars 0 forks source link

Wake lock not acquired in TrackRecordingService #1420

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Changes in revision 
https://code.google.com/p/mytracks/source/detail?spec=svn2a2a4e2c216a88b120d9680
4cf84620fe38839d7&r=822e37c826e02bcde9dd479ea94d3e8112a5179a
introduced a bug in TrackRecordingService.
In line removed 1069 from TrackRecordingService the return statement only 
applies if wakeLock is null. Otherwise it continues execution in order to 
acquire a lock.
Current SystemUtils line 82 returns the wakeLock regardless of it being null or 
not, which means that the lock is never acquired the first time 
SystemUtils.acquireLock(...) is called.

Original issue reported on code.google.com by oni.p...@gmail.com on 18 Nov 2013 at 4:31

GoogleCodeExporter commented 9 years ago
Thanks for find this. The fix will be in the next release.

Original comment by jshih@google.com on 13 Dec 2013 at 7:08