use the adjusted primary color for highlighting at search

This commit is contained in:
tibbi committed 2022-03-21 14:19:24 +01:00
1 parent e94b4d9f4b
commit 34d7d06cd6
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -63,7 +63,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:0ed7becb4d'
implementation 'com.github.SimpleMobileTools:Simple-Commons:47f816b35e'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'androidx.documentfile:documentfile:1.0.1'
@@ -487,7 +487,7 @@ class MainActivity : SimpleActivity() {
if (text.isNotBlank() && text.length > 1) {
searchMatches = noteView.value.searchMatches(text)
noteView.highlightText(text, config.primaryColor)
noteView.highlightText(text, getAdjustedPrimaryColor())
}
currentTextFragment?.setTextWatcher()