From f33f4eed5f516792dfac5f436f4aea2503cb3a66 Mon Sep 17 00:00:00 2001 From: madwasp79 Date: Fri, 1 Feb 2019 12:52:24 +0200 Subject: [PATCH] bugfix - Two AIDL items in the drawer #6466 - need testing --- OsmAnd/src/net/osmand/aidl/OsmandAidlApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/aidl/OsmandAidlApi.java b/OsmAnd/src/net/osmand/aidl/OsmandAidlApi.java index 5f833bd475..8ddddd5a51 100644 --- a/OsmAnd/src/net/osmand/aidl/OsmandAidlApi.java +++ b/OsmAnd/src/net/osmand/aidl/OsmandAidlApi.java @@ -1676,8 +1676,8 @@ public class OsmandAidlApi { boolean setNavDrawerItems(String appPackage, List items) { if (!TextUtils.isEmpty(appPackage) && items != null) { + clearNavDrawerItems(appPackage); if (items.isEmpty()) { - clearNavDrawerItems(appPackage); return true; } List newItems = new ArrayList<>(MAX_NAV_DRAWER_ITEMS_PER_APP);