refactor(library): Store sectioned library instead of flatten version of it (#336)

* refactor(library): Store sectioned first before flattening it out

* fix: Fix build, also rename some variables and move stuff around

* chore: Replace findCurrentCategory with currentCategory getter

* fix: Empty category can't be collapsed

* chore: Disable file log for debug build

* fix: Entry always displayed on default category

* refactor: Specify id, source, and url directly from MangaImpl constructor

* refactor: Make LibraryManga not extend MangaImpl

* refactor: Separate placeholder from LibraryManga

* fix: Default category should always be at the very beginning

* fix: Accidentally made the entries invisible

* fix: Default category disappear everytime a new category is added
This commit is contained in:
Ahmad Ansori Palembani 2025-01-05 18:15:34 +07:00 committed by GitHub
parent e415fd4ef2
commit cae0332ef9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 899 additions and 801 deletions

View file

@ -82,9 +82,6 @@ interface Manga : SManga {
}
}
fun isBlank() = id == Long.MIN_VALUE
fun isHidden() = status == -1
fun setChapterOrder(sorting: Int, order: Int) {
setChapterFlags(sorting, CHAPTER_SORTING_MASK)
setChapterFlags(order, CHAPTER_SORT_MASK)