From b99441be32592f004899abc86b4c3d763f4c5e5c Mon Sep 17 00:00:00 2001 From: Nazar-Kutz Date: Thu, 6 Aug 2020 13:36:41 +0300 Subject: [PATCH] Fix "Wikipedia: shadow is lost" --- .../net/osmand/plus/wikipedia/WikipediaPoiMenu.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/wikipedia/WikipediaPoiMenu.java b/OsmAnd/src/net/osmand/plus/wikipedia/WikipediaPoiMenu.java index 876674dd37..28c2639a35 100644 --- a/OsmAnd/src/net/osmand/plus/wikipedia/WikipediaPoiMenu.java +++ b/OsmAnd/src/net/osmand/plus/wikipedia/WikipediaPoiMenu.java @@ -115,10 +115,6 @@ public class WikipediaPoiMenu { .hideDivider(true) .setLoading(true) .setListener(l).createItem()); - adapter.addItem(new ContextMenuItem.ItemBuilder() - .setLayout(R.layout.card_bottom_divider) - .setMinHeight(spaceHeight) - .createItem()); } else { try { IndexItem currentDownloadingItem = downloadThread.getCurrentDownloadingItem(); @@ -196,15 +192,15 @@ public class WikipediaPoiMenu { } adapter.addItem(itemBuilder.createItem()); } - adapter.addItem(new ContextMenuItem.ItemBuilder() - .setLayout(R.layout.card_bottom_divider) - .setMinHeight(spaceHeight) - .createItem()); } } catch (IOException e) { e.printStackTrace(); } } + adapter.addItem(new ContextMenuItem.ItemBuilder() + .setLayout(R.layout.card_bottom_divider) + .setMinHeight(spaceHeight) + .createItem()); return adapter; }