about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-02-13 21:49:57 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-02-13 21:49:57 +0300
commit1d37d544855af993ce38536e2e72dcc42afeeb2e (patch)
tree49da0c9cd589a7944a9bc7d294b6d63aee053d34
parent81b35beebf0984e37bd708a810fc6da011f5446d (diff)
downloadtt-rss-android-1d37d544855af993ce38536e2e72dcc42afeeb2e.tar.gz
tt-rss-android-1d37d544855af993ce38536e2e72dcc42afeeb2e.tar.xz
hide indeterminate progressbar when player started loading/playing
-rwxr-xr-xorg.fox.ttrss/src/main/java/org/fox/ttrss/GalleryVideoFragment.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/GalleryVideoFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/GalleryVideoFragment.java
index bbcd1dd1..8e2a19f9 100755
--- a/org.fox.ttrss/src/main/java/org/fox/ttrss/GalleryVideoFragment.java
+++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/GalleryVideoFragment.java
@@ -76,6 +76,8 @@ public class GalleryVideoFragment extends GalleryBaseFragment {
             public void onPlayerError(PlaybackException error) {
                 Log.d(TAG, "onPlayerError:" + error);
 
+                view.findViewById(R.id.flavor_image_progress).setVisibility(View.GONE);
+
                 TextView errorView = view.findViewById(R.id.flavor_image_error);
 
                 if (errorView != null) {
@@ -89,7 +91,7 @@ public class GalleryVideoFragment extends GalleryBaseFragment {
             public void onIsLoadingChanged(boolean isLoading) {
                 Log.d(TAG, "onIsLoadingChanged" + isLoading);
 
-                view.findViewById(R.id.flavor_image_progress).setVisibility(isLoading ? View.VISIBLE : View.GONE);
+                view.findViewById(R.id.flavor_image_progress).setVisibility(View.GONE);
 
                 playerView.hideController();
             }