[Android] Fix the list/grid toggle state change in the video list

Nicolas Pomepuy git at videolan.org
Thu Dec 16 07:12:53 UTC 2021


vlc-android | branch: 3.4.x | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Dec 16 08:02:08 2021 +0100| [35cf857a4e53cea7c5653c7e035729a12c6ad35e] | committer: Nicolas Pomepuy

Fix the list/grid toggle state change in the video list

Fixes #2275


(cherry picked from commit 433a2ab7ef601eb3fce133518cccf64b5bc37d32)

> https://code.videolan.org/videolan/vlc-android/commit/35cf857a4e53cea7c5653c7e035729a12c6ad35e
---

 .../vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt      | 1 +
 1 file changed, 1 insertion(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
index ea99c5110..60a64fb47 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
@@ -165,6 +165,7 @@ class VideoGridFragment : MediaBrowserFragment<VideosViewModel>(), SwipeRefreshL
                 val displayInCards = settings.getBoolean(KEY_VIDEOS_CARDS, true)
                 settings.putSingle(KEY_VIDEOS_CARDS, !displayInCards)
                 updateViewMode()
+                activity?.invalidateOptionsMenu()
             }
             R.id.video_min_group_length_disable -> {
                 settings.putSingle(KEY_GROUP_VIDEOS, GROUP_VIDEOS_NONE)



More information about the Android mailing list