Skip to content

Commit

Permalink
fix(android): custom maker performance improvements when view tracking (
Browse files Browse the repository at this point in the history
  • Loading branch information
jared-ca authored Mar 10, 2024
1 parent 7b5c736 commit f30c9d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions android/src/main/java/com/rnmaps/maps/ViewChangesTracker.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ private ViewChangesTracker() {
handler = new Handler(Looper.myLooper());
updateRunnable = new Runnable() {
@Override
public void run() {
hasScheduledFrame = false;
public void run() {
update();

if (markers.size() > 0) {
handler.postDelayed(updateRunnable, fps);
} else {
hasScheduledFrame = false;
}
}
};
Expand Down

0 comments on commit f30c9d7

Please sign in to comment.