From cf5cc2d4c579b72ad526b13b659e6dd9f9d54b4b Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 27 Nov 2020 17:03:42 +0200 Subject: [PATCH] bug fix --- .../src/net/osmand/plus/mapcontextmenu/MenuBuilder.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java index 456f85d556..503e52ecf0 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java @@ -122,8 +122,13 @@ public class MenuBuilder { @Override public void onPlaceIdAcquired(String[] placeId) { MenuBuilder.this.placeId = placeId; - if (placeId.length < 2){ - photoButton.setVisibility(View.GONE); + if (placeId.length < 2) { + app.runInUIThread(new Runnable() { + @Override + public void run() { + photoButton.setVisibility(View.GONE); + } + }); } }