mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-24 13:56:14 +03:00
Fix in-note-search
This commit is contained in:
parent
56c1671600
commit
910e14b37e
1 changed files with 2 additions and 2 deletions
|
@ -49,8 +49,8 @@ public class DisplayUtils {
|
|||
|
||||
|
||||
while (m.find()) {
|
||||
int start = text.indexOf(m.group());
|
||||
int end = text.indexOf(m.group()) + m.group().length();
|
||||
int start = m.start();
|
||||
int end = m.end();
|
||||
spannable.setSpan(new ForegroundColorSpan(color), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
spannable.setSpan(new StyleSpan(Typeface.BOLD), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue