offline novel
This commit is contained in:
parent
111fb16266
commit
3ded6ba87a
18 changed files with 512 additions and 212 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue