mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-23 13:23:28 +03:00
fix(downloads): UI Issues with downloaded episodes
This commit is contained in:
parent
e5ecfa31f4
commit
575a364688
2 changed files with 5 additions and 3 deletions
|
@ -361,6 +361,8 @@ class AnimeDownloadCache(
|
|||
when {
|
||||
// Ignore incomplete downloads
|
||||
it.name?.endsWith(AnimeDownloader.TMP_DIR_SUFFIX) == true -> null
|
||||
// Folder of videos
|
||||
it.isDirectory -> it.name
|
||||
// MP4 files
|
||||
it.isFile && it.extension == "mp4" -> it.nameWithoutExtension
|
||||
// MKV files
|
||||
|
|
|
@ -34,7 +34,7 @@ import eu.kanade.tachiyomi.animesource.model.Track
|
|||
import eu.kanade.tachiyomi.ui.player.PlayerViewModel
|
||||
import eu.kanade.tachiyomi.ui.player.settings.sheetDialogPadding
|
||||
import `is`.xyz.mpv.MPVLib
|
||||
import kotlinx.collections.immutable.persistentListOf
|
||||
import kotlinx.collections.immutable.toImmutableList
|
||||
import tachiyomi.core.i18n.stringResource
|
||||
import tachiyomi.i18n.MR
|
||||
import tachiyomi.presentation.core.components.material.padding
|
||||
|
@ -52,7 +52,7 @@ fun StreamsCatalogSheet(
|
|||
onSettingsClicked: () -> Unit,
|
||||
onDismissRequest: () -> Unit,
|
||||
) {
|
||||
val tabTitles = persistentListOf(
|
||||
val tabTitles = mutableListOf(
|
||||
stringResource(MR.strings.subtitle_dialog_header),
|
||||
stringResource(MR.strings.audio_dialog_header),
|
||||
)
|
||||
|
@ -62,7 +62,7 @@ fun StreamsCatalogSheet(
|
|||
|
||||
TabbedDialog(
|
||||
onDismissRequest = onDismissRequest,
|
||||
tabTitles = tabTitles,
|
||||
tabTitles = tabTitles.toImmutableList(),
|
||||
onOverflowMenuClicked = onSettingsClicked,
|
||||
overflowIcon = Icons.Outlined.Settings,
|
||||
hideSystemBars = true,
|
||||
|
|
Loading…
Reference in a new issue