-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* support hide categories (merged from Aniyomi) * styling CategoryScreen: always showing all categories & shading the hidden one * Hide categories directly on Library tab and load it as a flow * fix: hidden categories got reset after delete/reorder * remove unnecessary code
- Loading branch information
1 parent
4a2f8a7
commit 6c9dfb8
Showing
21 changed files
with
201 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,9 @@ class BackupCategory( | |
@ProtoNumber(2) var order: Long = 0, | ||
// @ProtoNumber(3) val updateInterval: Int = 0, 1.x value not used in 0.x | ||
@ProtoNumber(100) var flags: Long = 0, | ||
// KMK --> | ||
@ProtoNumber(900) var hidden: Boolean = false, | ||
// KMK <-- | ||
// SY specific values | ||
/*@ProtoNumber(600) var mangaOrder: List<Long> = emptyList(),*/ | ||
) { | ||
|
@@ -18,6 +21,9 @@ class BackupCategory( | |
name = this@BackupCategory.name, | ||
flags = this@BackupCategory.flags, | ||
order = this@BackupCategory.order, | ||
// KMK --> | ||
hidden = this@BackupCategory.hidden, | ||
// KMK <-- | ||
/*mangaOrder = [email protected]*/ | ||
) | ||
} | ||
|
@@ -27,5 +33,8 @@ val backupCategoryMapper = { category: Category -> | |
name = category.name, | ||
order = category.order, | ||
flags = category.flags, | ||
// KMK --> | ||
hidden = category.hidden, | ||
// KMK <-- | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.