mirror of
https://github.com/null2264/yokai.git
synced 2025-06-20 18:24:42 +00:00
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:
parent
e415fd4ef2
commit
cae0332ef9
27 changed files with 899 additions and 801 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue