Fix displaying headers

This commit is contained in:
PavelRatushny 2017-09-08 10:06:57 +03:00
parent 3380abede2
commit a6bffe42d6

View file

@ -155,7 +155,7 @@ public class MapMarkersHistoryAdapter extends RecyclerView.Adapter<RecyclerView.
dateString = app.getString(R.string.last_seven_days); dateString = app.getString(R.string.last_seven_days);
} else if (dateHeader == THIS_YEAR_HEADER) { } else if (dateHeader == THIS_YEAR_HEADER) {
dateString = app.getString(R.string.this_year); dateString = app.getString(R.string.this_year);
} else if (dateHeader % 100 == 0) { } else if (dateHeader / 100 == 0) {
dateString = getMonth(dateHeader); dateString = getMonth(dateHeader);
} else { } else {
dateString = String.valueOf(dateHeader); dateString = String.valueOf(dateHeader);