Filter 'today' does not make sense for 'from'

This commit is contained in:
ByteHamster 2022-03-05 11:00:49 +01:00
parent fc3807aaf5
commit 5fee865ed4
1 changed files with 4 additions and 2 deletions

View File

@ -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]));
}
}