Commit 2be2f6a5 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Show playlist on search action

Fix #636
parent bb24adf4
......@@ -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())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment