mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-30 19:31:02 +00:00
offline novel
This commit is contained in:
@@ -58,9 +58,12 @@ class MediaDetailsViewModel : ViewModel() {
|
||||
it
|
||||
}
|
||||
if (isDownload) {
|
||||
data.sourceIndex = when (media.anime != null) {
|
||||
true -> AnimeSources.list.size - 1
|
||||
else -> MangaSources.list.size - 1
|
||||
data.sourceIndex = if (media.anime != null) {
|
||||
AnimeSources.list.size - 1
|
||||
} else if (media.format == "MANGA" || media.format == "ONE_SHOT") {
|
||||
MangaSources.list.size - 1
|
||||
} else {
|
||||
NovelSources.list.size - 1
|
||||
}
|
||||
}
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user