[Android] Subtitle dialog: fix initial state set to error
Nicolas Pomepuy
git at videolan.org
Fri Sep 30 09:06:27 UTC 2022
vlc-android | branch: 3.5.x | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Sep 29 07:46:33 2022 +0200| [2c7e0f68ada159ee6e25f31c599942c960767a1e] | committer: Duncan McNamara
Subtitle dialog: fix initial state set to error
Fixes #2696
> https://code.videolan.org/videolan/vlc-android/commit/2c7e0f68ada159ee6e25f31c599942c960767a1e
---
.../org/videolan/vlc/gui/dialogs/SubtitleDownloaderDialogFragment.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/SubtitleDownloaderDialogFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/SubtitleDownloaderDialogFragment.kt
index f11487059..966ecc9a5 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/SubtitleDownloaderDialogFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/SubtitleDownloaderDialogFragment.kt
@@ -90,7 +90,7 @@ class SubtitleDownloaderDialogFragment : VLCBottomSheetDialogFragment() {
}
override fun onResume() {
- viewModel.onRefresh()
+ if (viewModel.isApiLoading.value == false) viewModel.onRefresh()
super.onResume()
}
More information about the Android
mailing list