basic concept for original icon asignment for backed-up items

This commit is contained in:
sonora 2015-10-30 11:19:01 +01:00
parent 0052f4a1b3
commit df04fe44df

View file

@ -242,6 +242,24 @@ public class LocalIndexHelper {
LocalIndexType(@StringRes int resId){
this.resId = resId;
this.iconResource = R.drawable.ic_map;
//TODO: Adjust icon of backed up files to original type
//if (getString(resId) == R.string.local_indexes_cat_backup) {
// if (i.getOriginalType() == LocalIndexType.MAP_DATA) {
// this.iconResource = R.drawable.ic_map;
// } else if (i.getOriginalType() == LocalIndexType.TILES_DATA) {
// this.iconResource = R.drawable.ic_map;
// } else if (i.getOriginalType() == LocalIndexType.SRTM_DATA) {
// this.iconResource = R.drawable.ic_plugin_srtm;
// } else if (i.getOriginalType() == LocalIndexType.WIKI_DATA) {
// this.iconResource = R.drawable.ic_plugin_wikipedia;
// } else if (i.getOriginalType() == LocalIndexType.TTS_VOICE_DATA) {
// this.iconResource = R.drawable.ic_action_volume_up;
// } else if (i.getOriginalType() == LocalIndexType.VOICE_DATA) {
// this.iconResource = R.drawable.ic_action_volume_up;
// } else if (i.getOriginalType() == LocalIndexType.AV_DATA) {
// this.iconResource = R.drawable.ic_action_volume_up;
// }
}
public String getHumanString(Context ctx){
return ctx.getString(resId);