Move chapter filter/sort/display settings into a sheet

This commit is contained in:
arkon
2020-07-17 16:54:01 -04:00
parent d7a70b962b
commit 9278ca3f5e
8 changed files with 370 additions and 236 deletions

View File

@@ -24,10 +24,6 @@ interface Manga : SManga {
setFlags(order, SORT_MASK)
}
private fun setFlags(flag: Int, mask: Int) {
chapter_flags = chapter_flags and mask.inv() or (flag and mask)
}
fun sortDescending(): Boolean {
return chapter_flags and SORT_MASK == SORT_DESC
}
@@ -36,6 +32,10 @@ interface Manga : SManga {
return genre?.split(", ")?.map { it.trim() }
}
private fun setFlags(flag: Int, mask: Int) {
chapter_flags = chapter_flags and mask.inv() or (flag and mask)
}
// Used to display the chapter's title one way or another
var displayMode: Int
get() = chapter_flags and DISPLAY_MASK