From d290f1784b5cb71250f65ce893d94a78312c8fda Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Mon, 13 Nov 2017 11:16:25 +0200 Subject: [PATCH] Fix updating history adapter --- .../plus/mapmarkers/MapMarkersHistoryFragment.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersHistoryFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersHistoryFragment.java index ec12497499..ff55189a38 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersHistoryFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersHistoryFragment.java @@ -265,11 +265,21 @@ public class MapMarkersHistoryFragment extends Fragment implements MapMarkersHel @Override public void onMapMarkerChanged(MapMarker mapMarker) { - updateAdapter(); + app.runInUIThread(new Runnable() { + @Override + public void run() { + updateAdapter(); + } + }); } @Override public void onMapMarkersChanged() { - updateAdapter(); + app.runInUIThread(new Runnable() { + @Override + public void run() { + updateAdapter(); + } + }); } }