Add function in interface to get list of genres

This commit is contained in:
arkon
2020-04-18 11:36:05 -04:00
parent 5cff247aa4
commit 42a97f8c40
3 changed files with 13 additions and 12 deletions

View File

@@ -28,6 +28,10 @@ interface Manga : SManga {
return chapter_flags and SORT_MASK == SORT_DESC
}
fun getGenres(): List<String>? {
return genre?.split(", ")?.map { it.trim() }
}
// Used to display the chapter's title one way or another
var displayMode: Int
get() = chapter_flags and DISPLAY_MASK