From 34d7d06cd6026a874427cf100d72d97ff2959db3 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 21 Mar 2022 14:19:24 +0100 Subject: [PATCH] use the adjusted primary color for highlighting at search --- app/build.gradle | 2 +- .../com/simplemobiletools/notes/pro/activities/MainActivity.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index c0f18c65..90c087e1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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' diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt index def1a4cc..2ee371cf 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt @@ -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()