From d9a1647f1abe651a9de54bfd0849593fedf60720 Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 30 Oct 2015 10:20:52 +0100 Subject: [PATCH] fix missing activate items --- .../src/net/osmand/plus/download/ui/LocalIndexesFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java b/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java index 2d6f306980..98fd3d026a 100644 --- a/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java +++ b/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java @@ -1115,7 +1115,7 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement DirectionsDialogs.setupPopUpMenuIcon(optionsMenu); final boolean restore = info.isBackupedData(); MenuItem item; - if (info.getType() == LocalIndexType.MAP_DATA) { + if ((info.getType() == LocalIndexType.MAP_DATA) || (info.getType() == LocalIndexType.DEACTIVATED)) { item = optionsMenu.getMenu().add(restore ? R.string.local_index_mi_restore : R.string.local_index_mi_backup) .setIcon(iconsCache.getContentIcon(R.drawable.ic_type_archive)); item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {