[Android] Fix search item crash
Nicolas Pomepuy
git at videolan.org
Wed Apr 6 07:27:42 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Apr 6 07:13:12 2022 +0200| [5b9ea656e7db7a98d03e5ac656d99b81d22a4949] | committer: Nicolas Pomepuy
Fix search item crash
> https://code.videolan.org/videolan/vlc-android/commit/5b9ea656e7db7a98d03e5ac656d99b81d22a4949
---
application/vlc-android/src/org/videolan/vlc/gui/ContentActivity.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/ContentActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/ContentActivity.kt
index 6a0ea4142..3165eefa9 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/ContentActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/ContentActivity.kt
@@ -80,7 +80,7 @@ open class ContentActivity : AudioPlayerContainerActivity(), SearchView.OnQueryT
override fun onPause() {
super.onPause()
- searchItem.collapseActionView()
+ if (::searchItem.isInitialized) searchItem.collapseActionView()
}
override fun onCreateOptionsMenu(menu: Menu): Boolean {
More information about the Android
mailing list