[Android] Show playlist on search action

Geoffrey Métais git at videolan.org
Tue Aug 28 18:07:17 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Aug 28 18:06:06 2018 +0200| [2be2f6a57309dafa7e8b10b79a2546b4c25ddfe1] | committer: Geoffrey Métais

Show playlist on search action

Fix #636

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
index 1f883db5c..7ebfe5b96 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
@@ -303,6 +303,7 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher, PlaybackSe
     }
 
     override fun playItem(position: Int, item: MediaWrapper) {
+        hideSearchField()
         service?.playIndex(playlistModel.getItemPosition(position, item))
     }
 
@@ -414,6 +415,7 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher, PlaybackSe
         binding.playlistSearch.visibility = View.GONE
         binding.playlistSearchText.visibility = View.VISIBLE
         binding.playlistSearchText.editText?.requestFocus()
+        if (binding.showCover) onPlaylistSwitchClick(binding.playlistSwitch)
         val imm = VLCApplication.getAppContext().getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
         imm.showSoftInput(binding.playlistSearchText.editText, InputMethodManager.SHOW_IMPLICIT)
         handler.postDelayed(hideSearchRunnable, SEARCH_TIMEOUT_MILLIS.toLong())



More information about the Android mailing list