Location renderer: avoid continuous rendering, closes #141

This commit is contained in:
Emux
2017-06-12 15:40:45 +03:00
parent b94d943247
commit 223eb120fa
2 changed files with 3 additions and 2 deletions

View File

@@ -125,7 +125,8 @@ public class LocationRenderer extends LayerRenderer {
long diff = System.currentTimeMillis() - lastRun;
mMap.postDelayed(this, Math.min(ANIM_RATE, diff));
mMap.render();
if (!mLocationIsVisible)
mMap.render();
lastRun = System.currentTimeMillis();
}
};