Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 869b2cc5 authored by Robbie Cooper's avatar Robbie Cooper Committed by GitHub
Browse files

Fix debouncing not working on first search character



Should partially address #1729 and #769.

Signed-off-by: default avatarRobbie Cooper <cooperra@users.noreply.github.com>
parent 2d6b4fa7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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 {