fix missing activate items

This commit is contained in:
sonora 2015-10-30 10:20:52 +01:00
parent 6c7ea6e9ed
commit d9a1647f1a

View file

@ -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() {