use of net.osmand.plus.settings.backend.ExportSettingsType in project Osmand by osmandapp.
the class BaseBackupTypesFragment method onCategorySelected.
@Override
public void onCategorySelected(ExportSettingsCategory category, boolean selected) {
boolean hasItemsToDelete = false;
SettingsCategoryItems categoryItems = dataList.get(category);
List<ExportSettingsType> types = categoryItems.getTypes();
for (ExportSettingsType type : types) {
List<Object> items = getItemsForType(type);
hasItemsToDelete |= !Algorithms.isEmpty(items);
selectedItemsMap.put(type, selected ? items : null);
}
if (!selected && hasItemsToDelete) {
showClearTypesBottomSheet(types);
}
}
Aggregations