mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-02-25 02:57:50 -05:00
Merge pull request #40 from tom93/fix-search-leading-spaces
Fix search pos on file with leading whitespace
This commit is contained in:
@@ -316,7 +316,7 @@ class ReadTextActivity : SimpleActivity() {
|
||||
binding.readTextView.text?.clearBackgroundSpans()
|
||||
|
||||
if (text.isNotBlank() && text.length > 1) {
|
||||
searchMatches = binding.readTextView.value.searchMatches(text)
|
||||
searchMatches = binding.readTextView.text.toString().searchMatches(text)
|
||||
binding.readTextView.highlightText(text, getProperPrimaryColor())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user