Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] - dealing with infinite camera move callbacks (#9177) (#9194)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasPaczos authored and tobrun committed Jun 6, 2017
1 parent ef7b355 commit a1f8de6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,12 @@ MyLocationBehavior getBehavioralModel(@MyLocationTracking.Mode int mode) {

private abstract class MyLocationBehavior {

MyLocationBehavior() {
if (latLng != null) {
locationUpdateTimestamp = SystemClock.elapsedRealtime();
}
}

void updateLatLng(@NonNull Location newLocation) {
location = newLocation;
}
Expand Down

0 comments on commit a1f8de6

Please sign in to comment.