[Android] Proper fix to initial video display state
Nicolas Pomepuy
git at videolan.org
Thu Oct 10 16:38:34 CEST 2019
vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Thu Oct 10 06:34:15 2019 +0200| [309f3a75017582890422287576f372cf2bed6573] | committer: Geoffrey Métais
Proper fix to initial video display state
> https://code.videolan.org/videolan/vlc-android/commit/309f3a75017582890422287576f372cf2bed6573
---
vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
index 92d389fd6..51f40c55c 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
@@ -282,7 +282,7 @@ class VideoGridFragment : MediaBrowserFragment<VideosViewModel>(), SwipeRefreshL
val res = resources
if (gridItemDecoration == null)
gridItemDecoration = ItemOffsetDecoration(resources, R.dimen.left_right_1610_margin, R.dimen.top_bottom_1610_margin)
- val listMode = Settings.getInstance(requireContext()).getBoolean("video_display_in_cards", false)
+ val listMode = !Settings.getInstance(requireContext()).getBoolean("video_display_in_cards", true)
// Select between grid or list
binding.videoGrid.removeItemDecoration(gridItemDecoration!!)
More information about the Android
mailing list