bugfix - Two AIDL items in the drawer #6466 - need testing

This commit is contained in:
madwasp79 2019-02-01 12:52:24 +02:00
parent db5164163c
commit f33f4eed5f

View file

@ -1676,8 +1676,8 @@ public class OsmandAidlApi {
boolean setNavDrawerItems(String appPackage, List<net.osmand.aidl.navdrawer.NavDrawerItem> items) {
if (!TextUtils.isEmpty(appPackage) && items != null) {
clearNavDrawerItems(appPackage);
if (items.isEmpty()) {
clearNavDrawerItems(appPackage);
return true;
}
List<NavDrawerItem> newItems = new ArrayList<>(MAX_NAV_DRAWER_ITEMS_PER_APP);