[Android] Video fragment: Fix loading view not hidden
Geoffrey Métais
git at videolan.org
Fri Jul 6 09:13:38 CEST 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jul 3 10:46:38 2018 +0200| [cbd39b1161673cbd2a329e031284b830b311fbeb] | committer: Geoffrey Métais
Video fragment: Fix loading view not hidden
> https://code.videolan.org/videolan/vlc-android/commit/cbd39b1161673cbd2a329e031284b830b311fbeb
---
vlc-android/res/layout/video_grid.xml | 6 ++----
vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java | 2 ++
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/vlc-android/res/layout/video_grid.xml b/vlc-android/res/layout/video_grid.xml
index 4e183dc95..cee2ecb2a 100644
--- a/vlc-android/res/layout/video_grid.xml
+++ b/vlc-android/res/layout/video_grid.xml
@@ -72,8 +72,7 @@
android:layout_weight="1"
android:gravity="start"
android:text="@string/loading"
- android:textSize="20sp"
- android:visibility="@{empty ? View.VISIBLE : View.GONE}" />
+ android:textSize="20sp" />
<ViewFlipper
android:id="@+id/loading_flipper"
@@ -84,8 +83,7 @@
app:layout_constraintBaseline_toBaselineOf="@+id/loading_title"
android:layout_gravity="start"
android:autoStart="true"
- android:flipInterval="1000"
- android:visibility="@{empty ? View.VISIBLE : View.GONE}" >
+ android:flipInterval="1000" >
<TextView
android:layout_width="match_parent"
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
index 70b22a286..24cb152dd 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.java
@@ -224,6 +224,8 @@ public class VideoGridFragment extends MediaBrowserFragment<VideosModel> impleme
}
void updateEmptyView() {
+ mBinding.loadingFlipper.setVisibility(View.GONE);
+ mBinding.loadingTitle.setVisibility(View.GONE);
mBinding.setEmpty(mAdapter.isEmpty());
}
More information about the Android
mailing list