[Android] Increase playlist search auto-close delay

Geoffrey Métais git at videolan.org
Tue Jan 15 16:29:12 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan 15 16:11:01 2019 +0100| [cb218cf2a3f8ba3dc0bb4da23a70d040836a5662] | committer: Geoffrey Métais

Increase playlist search auto-close delay

Fix #721

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

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

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 26de18bd2..53dbe6eb9 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
@@ -76,7 +76,7 @@ import org.videolan.vlc.viewmodels.PlaybackProgress
 import org.videolan.vlc.viewmodels.PlaylistModel
 
 private const val TAG = "VLC/AudioPlayer"
-private const val SEARCH_TIMEOUT_MILLIS = 5000
+private const val SEARCH_TIMEOUT_MILLIS = 10000L
 
 @ExperimentalCoroutinesApi
 @Suppress("UNUSED_PARAMETER")
@@ -410,7 +410,7 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher {
         if (binding.showCover) onPlaylistSwitchClick(binding.playlistSwitch)
         val imm = v.context.applicationContext.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
         imm.showSoftInput(binding.playlistSearchText.editText, InputMethodManager.SHOW_IMPLICIT)
-        handler.postDelayed(hideSearchRunnable, SEARCH_TIMEOUT_MILLIS.toLong())
+        handler.postDelayed(hideSearchRunnable, SEARCH_TIMEOUT_MILLIS)
     }
 
     override fun beforeTextChanged(charSequence: CharSequence, start: Int, before: Int, count: Int) {}



More information about the Android mailing list