Fix "Wikipedia: shadow is lost"

This commit is contained in:
Nazar-Kutz 2020-08-06 13:36:41 +03:00
parent e6d26f5c19
commit b99441be32

View file

@ -115,10 +115,6 @@ public class WikipediaPoiMenu {
.hideDivider(true) .hideDivider(true)
.setLoading(true) .setLoading(true)
.setListener(l).createItem()); .setListener(l).createItem());
adapter.addItem(new ContextMenuItem.ItemBuilder()
.setLayout(R.layout.card_bottom_divider)
.setMinHeight(spaceHeight)
.createItem());
} else { } else {
try { try {
IndexItem currentDownloadingItem = downloadThread.getCurrentDownloadingItem(); IndexItem currentDownloadingItem = downloadThread.getCurrentDownloadingItem();
@ -196,15 +192,15 @@ public class WikipediaPoiMenu {
} }
adapter.addItem(itemBuilder.createItem()); adapter.addItem(itemBuilder.createItem());
} }
adapter.addItem(new ContextMenuItem.ItemBuilder()
.setLayout(R.layout.card_bottom_divider)
.setMinHeight(spaceHeight)
.createItem());
} }
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
} }
adapter.addItem(new ContextMenuItem.ItemBuilder()
.setLayout(R.layout.card_bottom_divider)
.setMinHeight(spaceHeight)
.createItem());
return adapter; return adapter;
} }