mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-21 12:25:57 +03:00
Fix debouncing not working on first search character
Should partially address #1729 and #769. Signed-off-by: Robbie Cooper <cooperra@users.noreply.github.com>
This commit is contained in:
parent
2d6b4fa7bc
commit
869b2cc5c7
1 changed files with 1 additions and 2 deletions
|
@ -228,8 +228,7 @@ public abstract class SearchableBaseNoteFragment extends BaseNoteFragment {
|
|||
handler.removeCallbacksAndMessages(null);
|
||||
}
|
||||
delayQueryTask = new DelayQueryRunnable(newText);
|
||||
// If there is only one char in the search pattern, we should start the search immediately.
|
||||
handler.postDelayed(delayQueryTask, newText.length() > 1 ? delay : 0);
|
||||
handler.postDelayed(delayQueryTask, delay);
|
||||
}
|
||||
|
||||
class DelayQueryRunnable implements Runnable {
|
||||
|
|
Loading…
Reference in a new issue