mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-03 17:59:51 +02:00
Ignore blocked rules in the category list
This commit is contained in:
parent
f298390e6d
commit
4ddd79bc94
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class ManageChildCategoriesModel(application: Application): AndroidViewModel(app
|
|||
remainingTimeToday = RemainingTime.getRemainingTime(
|
||||
dayOfWeek = childDate.dayOfWeek,
|
||||
usedTimes = usedTimeItemsForCategory,
|
||||
rules = rules,
|
||||
rules = rules.filter { it.maximumTimeInMillis > 0 } /* ignore "blocked" rules for this calculation */,
|
||||
extraTime = category.category.getExtraTime(dayOfEpoch = childDate.dayOfEpoch),
|
||||
minuteOfDay = childMinuteOfWeek % MinuteOfDay.LENGTH,
|
||||
firstDayOfWeekAsEpochDay = firstDayOfWeek
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue