mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 20:49:36 +01:00
Delay only if not empty
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
cd35b6eb24
commit
40d5dd469a
@ -66,7 +66,9 @@ class DebouncingTextWatcher(
|
||||
searchJob?.cancel()
|
||||
searchJob = coroutineScope.launch {
|
||||
charSequence.let {
|
||||
if (!charSequence.isNullOrEmpty()) {
|
||||
delay(debouncePeriod)
|
||||
}
|
||||
onDebouncingTextWatcherChange(charSequence)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user