[android] - dealing with infinite camera move callbacks (#9177) (#9194)

This commit is contained in:
Łukasz Paczos
2017-06-06 12:15:21 +02:00
committed by Tobrun
parent ef7b3552b5
commit a1f8de6679

View File

@@ -701,6 +701,12 @@ public class MyLocationView extends View {
private abstract class MyLocationBehavior {
MyLocationBehavior() {
if (latLng != null) {
locationUpdateTimestamp = SystemClock.elapsedRealtime();
}
}
void updateLatLng(@NonNull Location newLocation) {
location = newLocation;
}