Open GoogleCodeExporter opened 9 years ago
I thought it over and the last part of my report should be ignored.
Original comment by pbp...@gmail.com
on 16 Aug 2011 at 5:52
Worse yet. minTime is defined as "Minimum time required between location
updates" but it is being compared with Location.getTime() which is defined as
"Returns the UTC time of this fix, in milliseconds since January 1, 1970".
We shouldn't be comparing minTime with Location.getTime(). We should be
comparing it with timeElapsed (System.currentTimeMillis() - Location.getTime()).
This bug applies to GingerbreadLastLocationFinder as well.
Original comment by cow...@bbs.darktech.org
on 7 May 2012 at 3:58
Actually, the correct and simple fix would be to just edit the line
long time = location.getTime();
to
long time = System.currentTimeMillis() - location.getTime();
That will solve all issues.
Also minTime should be defined something like "Minimum time since last location
update"
Original comment by lionscr...@gmail.com
on 27 Dec 2012 at 10:36
Original issue reported on code.google.com by
pbp...@gmail.com
on 16 Aug 2011 at 5:17