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

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


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Dec 16 08:02:08 2021 +0100| [433a2ab7ef601eb3fce133518cccf64b5bc37d32] | committer: Nicolas Pomepuy

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

Fixes #2275

> https://code.videolan.org/videolan/vlc-android/commit/433a2ab7ef601eb3fce133518cccf64b5bc37d32
---

 .../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 fe95f7025..2496e0acf 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
@@ -167,6 +167,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