Filter 'today' does not make sense for 'from'
This commit is contained in:
parent
fc3807aaf5
commit
5fee865ed4
|
@ -126,8 +126,10 @@ public class StatisticsFilterDialog {
|
|||
timestamps.add(date.getTimeInMillis());
|
||||
}
|
||||
}
|
||||
names.add(context.getString(R.string.statistics_today));
|
||||
timestamps.add(Long.MAX_VALUE);
|
||||
if (inclusive) {
|
||||
names.add(context.getString(R.string.statistics_today));
|
||||
timestamps.add(Long.MAX_VALUE);
|
||||
}
|
||||
return new Pair<>(names.toArray(new String[0]), timestamps.toArray(new Long[0]));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue