Commit 8eb03921 authored by Stefan Niedermann's avatar Stefan Niedermann
Browse files

Fix highlight when wrapping around search occurrences

parent 18d30b99
......@@ -90,16 +90,16 @@ public abstract class SearchableBaseNoteFragment extends BaseNoteFragment {
if (next != null) {
next.setOnClickListener(v -> {
currentOccurrence++;
colorWithText(searchView.getQuery().toString(), currentOccurrence);
jumpToOccurrence();
colorWithText(searchView.getQuery().toString(), currentOccurrence);
});
}
if (prev != null) {
prev.setOnClickListener(v -> {
currentOccurrence--;
colorWithText(searchView.getQuery().toString(), currentOccurrence);
jumpToOccurrence();
colorWithText(searchView.getQuery().toString(), currentOccurrence);
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment