Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Geoffrey Métais
VLC-Android
Commits
cb218cf2
Commit
cb218cf2
authored
Jan 15, 2019
by
Geoffrey Métais
Browse files
Increase playlist search auto-close delay
Fix #721
parent
bb483082
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
View file @
cb218cf2
...
...
@@ -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
=
5
000
private
const
val
SEARCH_TIMEOUT_MILLIS
=
10
000
L
@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
)
{}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment