[Android] Fixed search collapse side-effect on menu items

Shivansh Saini git at videolan.org
Mon Aug 12 18:17:06 CEST 2019


vlc-android | branch: 3.2.x | Shivansh Saini <shivanshs9 at gmail.com> | Fri Aug  9 08:35:22 2019 +0530| [54948a6ff5249808f8331008b23623de08c770fd] | committer: Geoffrey Métais

Fixed search collapse side-effect on menu items

Signed-off-by: Shivansh Saini <shivanshs9 at gmail.com>
(cherry picked from commit b3df511db54d3ef344f60e3803cf4775a7aa4685)

> https://code.videolan.org/videolan/vlc-android/commit/54948a6ff5249808f8331008b23623de08c770fd
---

 vlc-android/src/org/videolan/vlc/gui/ContentActivity.kt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/ContentActivity.kt b/vlc-android/src/org/videolan/vlc/gui/ContentActivity.kt
index 2f66409b9..3b1eeb033 100644
--- a/vlc-android/src/org/videolan/vlc/gui/ContentActivity.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/ContentActivity.kt
@@ -180,6 +180,8 @@ open class ContentActivity : AudioPlayerContainerActivity(), SearchView.OnQueryT
             searchHiddenMenuItem.forEach {
                 it.isVisible = true
             }
+            searchHiddenMenuItem.clear()
+            invalidateOptionsMenu()
         } else {
             for (i in 0 until menu.size()) {
                 val menuItem = menu.getItem(i)



More information about the Android mailing list