[Android] OpenSubtitles: hide the retry button on other states
Nicolas Pomepuy
git at videolan.org
Thu Nov 21 13:19:11 UTC 2024
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Nov 21 07:35:10 2024 +0100| [6b697b05852804826ed501911da8beb6bc5c92d2] | committer: Duncan McNamara
OpenSubtitles: hide the retry button on other states
> https://code.videolan.org/videolan/vlc-android/commit/6b697b05852804826ed501911da8beb6bc5c92d2
---
application/vlc-android/res/layout/subtitle_downloader_dialog.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/res/layout/subtitle_downloader_dialog.xml b/application/vlc-android/res/layout/subtitle_downloader_dialog.xml
index 073cc13a74..d9d566d247 100644
--- a/application/vlc-android/res/layout/subtitle_downloader_dialog.xml
+++ b/application/vlc-android/res/layout/subtitle_downloader_dialog.xml
@@ -332,7 +332,7 @@
android:layout_height="wrap_content"
android:text="@string/retry"
app:layout_constraintEnd_toEndOf="parent"
- android:visibility="@{viewmodel.observableError ? View.VISIBLE : View.GONE}"
+ android:visibility="@{viewmodel.observableError && state == state.Download ? View.VISIBLE : View.GONE}"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/message"
app:layout_constraintBottom_toBottomOf="@id/subs_download_list"/>
More information about the Android
mailing list