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

Shivansh Saini git at videolan.org
Mon Aug 12 16:16:54 CEST 2019


vlc-android | branch: master | Shivansh Saini <shivanshs9 at gmail.com> | Fri Aug  9 08:35:22 2019 +0530| [b3df511db54d3ef344f60e3803cf4775a7aa4685] | committer: Nicolas Pomepuy

Fixed search collapse side-effect on menu items

Signed-off-by: Shivansh Saini <shivanshs9 at gmail.com>

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

 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