Fix history header
This commit is contained in:
parent
cc13112c63
commit
30a966af0b
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ public class MapMarkersHistoryAdapter extends RecyclerView.Adapter<RecyclerView.
|
||||||
int markerDay = markerCalendar.get(Calendar.DAY_OF_YEAR);
|
int markerDay = markerCalendar.get(Calendar.DAY_OF_YEAR);
|
||||||
int markerMonth = markerCalendar.get(Calendar.MONTH);
|
int markerMonth = markerCalendar.get(Calendar.MONTH);
|
||||||
int markerYear = markerCalendar.get(Calendar.YEAR);
|
int markerYear = markerCalendar.get(Calendar.YEAR);
|
||||||
if (markerYear == currentYear) {
|
if (markerYear == currentYear || markerYear == 1970) {
|
||||||
if (markerDay == currentDay) {
|
if (markerDay == currentDay) {
|
||||||
if (previousHeader != TODAY_HEADER) {
|
if (previousHeader != TODAY_HEADER) {
|
||||||
items.add(TODAY_HEADER);
|
items.add(TODAY_HEADER);
|
||||||
|
|
Loading…
Reference in a new issue