neutral color for deactivated items

This commit is contained in:
sonora 2015-10-30 10:09:14 +01:00
parent f18bff968c
commit c05b7b3869

View file

@ -1031,6 +1031,9 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement
}
});
int colorId = filesToUpdate.containsKey(child.getFileName()) ? R.color.color_distance : R.color.color_ok;
if (child.isBackupedData()) {
colorId = R.color.color_unknown;
}
icon.setImageDrawable(getContentIcon(ctx, child.getType().getIconResource(), colorId));
nameTextView.setText(getNameToDisplay(child));