Skip to content
Snippets Groups Projects
Commit 309f3a75 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Geoffrey Métais
Browse files

Proper fix to initial video display state

parent 6a22b859
No related branches found
No related tags found
1 merge request!278Proper fix to initial video display state
Pipeline #10167 failed with stage
in 21 minutes and 40 seconds
......@@ -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!!)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment