Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Quantity Badge to Upcoming Screen #1250

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Animeboynz
Copy link
Contributor

@Animeboynz Animeboynz commented Sep 20, 2024

Fixes #1227

Screenshot_20240919_105658_Mihon Screenshot_20240919_105752_Mihon

Comment on lines 178 to 184
val mangaCount = items.filterIsInstance<UpcomingUIModel.Item>()
.count { it.manga.expectedNextUpdate?.toLocalDate() == item.date }

DateHeading(
date = item.date,
mangaCount = mangaCount,
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This calculation should be done inside the screen model. If we do this in the UI the calculation will need to run again after the UI element goes off screen (plus some more).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IDK if what I did is what you meant but we will see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show number of entries on upcoming screen
2 participants