-
Notifications
You must be signed in to change notification settings - Fork 481
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
Added random library sort #1317
Conversation
domain/src/main/java/tachiyomi/domain/library/service/LibraryPreferences.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryScreenModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryScreenModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryScreenModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/eu/kanade/presentation/library/LibrarySettingsDialog.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/tachiyomi/domain/library/model/LibrarySortMode.kt
Outdated
Show resolved
Hide resolved
presentation-core/src/main/java/tachiyomi/presentation/core/components/SettingsItems.kt
Outdated
Show resolved
Hide resolved
…gsDialog.kt Co-authored-by: AntsyLich <[email protected]>
…Model.kt Co-authored-by: AntsyLich <[email protected]>
Thanks for the review, learned return@ and that you can throw an error from a switch instead of making it nullable. Updates made. |
app/src/main/java/eu/kanade/presentation/library/LibrarySettingsDialog.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/tachiyomi/domain/library/model/LibrarySortMode.kt
Outdated
Show resolved
Hide resolved
…gsDialog.kt Co-authored-by: AntsyLich <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides this looks fine
app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryScreenModel.kt
Outdated
Show resolved
Hide resolved
domain/src/main/java/tachiyomi/domain/library/service/LibraryPreferences.kt
Outdated
Show resolved
Hide resolved
ALso make sure to run |
…Model.kt Co-authored-by: AntsyLich <[email protected]>
…references.kt Co-authored-by: AntsyLich <[email protected]>
Has this been considered as a precommit hook? Would save having to remember to do it. I can PR that if it's something you'd like. Only asterisk is that runtime's a bit long, but if we should be running it all the time anyway, it might be a good idea. |
Just to confirm. Clicking "Random" while it's active changes the sort? |
That's right, yeah |
swear I made that change already but that should fix (the?) failing unit test |
Replacing #1315 because I was using my main branch like a goon
Problem:
If you have a large bulk from a source that uses something that interferes with alphabetical tagging - e.g. a comic source that leads its releases with the year ([2019], ex), the sort options will group every title like that together when, personally, I've found I sometimes want to view my library in a way that scatters them more evenly. Sometimes I don't want to view my stuff chronologically.
Also I just like random sort.
Behavior:
Using a single random seed for all categories. The seed for all categories using random sort will change any time a section switches to random or taps on the randomization again. I believe this should line up with expected behavior and that users don't expect a distinctly saved random ordering for each tab, but I'm open to discussion there.
Images