add mark previous as read option in chapter list (#632)

add download unread, mark read, mark unread on library view
This commit is contained in:
Carlos 2020-12-13 12:19:20 -05:00 committed by GitHub
parent 68db9a88e6
commit 5989c7119f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 86 additions and 4 deletions

View file

@ -56,6 +56,10 @@ open class SourceManager(private val context: Context) {
}
}
fun isDelegatedSource(source: Source): Boolean {
return delegatedSources.values.count { it.sourceId == source.id } > 0
}
fun getDelegatedSource(urlName: String): DelegatedHttpSource? {
return delegatedSources.values.find { it.urlName == urlName }?.delegatedHttpSource
}