You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. The subtle differences in (the upper half of) getLastBestLocation() between
GingerbreadLastLocationFinder and LegacyLastLocationFinder doesn't make sense
to me. The code in GingerbreadLastLocationFinder looks correct.
2. The constructor GingerbreadLastLocationFinder() sets accuracy to
ACCURACY_LOW but the comment above is about ACCURACY_COARSE (which is used in
LegacyLastLocationFinder).
I suggest one of the following refactorings:
- Rename ILastLocationFinder to LastLocationFinder and turn it into an abstract
class with common code, or
- Remove ILastLocationFinder, rename LegacyLastLocationFinder to
LastLocationFinder, put the common code there and make
GingerbreadLastLocationFinder extend that class.
While you're at it, you may also remove the redundant parenthesis in:
if ((time > minTime && accuracy < bestAccuracy)) {
Oh, and thanks for an awesome deep dive! Helped me a lot.
Original issue reported on code.google.com by [email protected] on 26 Jun 2011 at 9:44
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 26 Jun 2011 at 9:44The text was updated successfully, but these errors were encountered: