- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
private List<String> getHeadings(List<String> headings, TypeParams params) {
List<String> toReturn = new ArrayList<String>();
for(String type : headings){
if(!type.equals(getResources().getStringArray(R.array.red_flag_arrays)[0])){
if(getResources().getStringArray(R.array.red_flag_arrays)[1].equals(type)){
type = type + OPEN + params.getProblemSize() + CLOSE;
toReturn.add(type);
}
else if(getResources().getStringArray(R.array.red_flag_arrays)[2].equals(type)){
type = type + OPEN + params.getCompetitorSize() + CLOSE;
toReturn.add(type);
}
else if(getResources().getStringArray(R.array.red_flag_arrays)[3].equals(type)){
type = type + OPEN + params.getRobberySize() + CLOSE;
toReturn.add(type);
}
else if(getResources().getStringArray(R.array.red_flag_arrays)[4].equals(type)){
type = type + OPEN + params.getInjurySize() + CLOSE;
toReturn.add(type);
}
else if(getResources().getStringArray(R.array.red_flag_arrays)[5].equals(type)){
type = type + OPEN + params.getSickSize() + CLOSE;
toReturn.add(type);
}
else if(getResources().getStringArray(R.array.red_flag_arrays)[6].equals(type)){
type = type + OPEN + params.getDamagedSize() + CLOSE;
toReturn.add(type);
}
else if(getResources().getStringArray(R.array.red_flag_arrays)[7].equals(type)){
type = type + OPEN + params.getNoStockSize() + CLOSE;
toReturn.add(type);
}
}
}
return toReturn;
}
Комментарии (0) RSS
Добавить комментарий