Привет в приведенном ниже коде. Количество каждой метки не дает точного значения в зависимости от имени строки. Количество каждой метки неверно в сравнении данных My. Метки, которые я отображаю из API и сохраняю в общих настройках на основе меток, вычисляющих
MyTaskModel outcomeModel = new MyTaskModel(scheduleDate,outcome);
outcome_list.add(outcomeModel);
Log.d("outcome_list",String.valueOf(outcome_list));
if(outcome.equals("Order Closed")){
OrderClosed= outcomeModel.getOutcome();
String order= String.valueOf(outcomeModel.getOutcome().length());
Log.d("order", order);
Count_OrderClosed=Integer.parseInt(order);
// Count_OrderClosed = Collections.frequency(outcome_list, "Order Closed");
// Log.d("Count Order Closed", String.valueOf(Count_OrderClosed));
}else if(outcome.equals("Follow-up")){
Followup= outcomeModel.getOutcome();
String Follow= String.valueOf(outcome.length());
Count_Followup = Integer.parseInt(Follow);
Log.d("Count_Followup", String.valueOf(Count_Followup));
}else if(outcome.equals("Interested")){
Interested= outcomeModel.getOutcome();
Log.d("Interested", Interested);
String Inter= String.valueOf(outcome.length());
Count_Interested1 = Integer.parseInt(Inter);
Log.d("Count_Interested1", String.valueOf(Count_Interested1));
}else if(outcome.equals("Done")){
Done= outcomeModel.getOutcome();
Log.d("Done", Done);
String don= String.valueOf(outcome.length());
Count_Done = Integer.parseInt(don);
Log.d("Count_Done", String.valueOf(Count_Done));
}else if(outcome.equals("Collected")){
Collected= outcomeModel.getOutcome();
Log.d("Collected", Collected);
String coll= String.valueOf(outcome.length());
Count_Collected = Integer.parseInt(coll);
Log.d("Count_Collected", String.valueOf(Count_Done));
}else if(outcome.equals("Not Interested")){
Not_Interested= outcomeModel.getOutcome();
Log.d("Not_Interested", Not_Interested);
String not= String.valueOf(Not_Interested.length());
Count_NotInterested = Integer.parseInt(not);
Log.d("Count_NotInterested", String.valueOf(Count_NotInterested));
}
final ArrayList<String> arrayList = new ArrayList<String>();
arrayList.add(OrderClosed);
arrayList.add(Not_Interested);
arrayList.add(Collected);
arrayList.add(Done);
arrayList.add(Interested);
arrayList.add(Followup);
Log.d("arraylist", String.valueOf(arrayList));