Skip to content

Commit

Permalink
fix(gui): correct set highlighted text in search (#1507)
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed Jun 20, 2022
1 parent 92a6c33 commit 4679172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jadx-gui/src/main/java/jadx/gui/ui/dialog/SearchDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ private void searchFieldSubscribe() {
Flowable<String> textChanges = onTextFieldChanges(searchField);
Flowable<String> searchEvents = Flowable.merge(textChanges, searchEmitter.getFlowable());
searchDisposable = searchEvents
.debounce(100, TimeUnit.MILLISECONDS)
.debounce(500, TimeUnit.MILLISECONDS)
.observeOn(SwingSchedulers.edt())
.subscribe(this::search);
}
Expand Down Expand Up @@ -342,6 +342,7 @@ private synchronized void search(String text) {
return;
}

updateTableHighlight();
startSearch();
searchTask.setResultsLimit(100);
searchTask.setProgressListener(this::updateProgress);
Expand Down Expand Up @@ -476,7 +477,6 @@ private void updateProgress(ITaskProgress progress) {
private synchronized void searchComplete() {
UiUtils.uiThreadGuard();
LOG.debug("Search complete");
updateTableHighlight();
updateTable();

boolean complete = searchTask == null || searchTask.isSearchComplete();
Expand Down

0 comments on commit 4679172

Please sign in to comment.