Skip to content

RF Sentinel (RFSentinel): free, open-source police detector app for Android. Spots police body cams, Flock ALPR cameras, AirTag trackers, Remote ID drones, smart glasses and fake cell towers from Bluetooth LE and WiFi. No root.

Banner follows the Night Drive red

CIS-C0ba1c5296683f
diff --git a/app/src/main/java/com/rfsentinel/app/MainActivity.kt b/app/src/main/java/com/rfsentinel/app/MainActivity.kt
index b48ff83..4486935 100644
--- a/app/src/main/java/com/rfsentinel/app/MainActivity.kt
+++ b/app/src/main/java/com/rfsentinel/app/MainActivity.kt
@@ -1380,11 +1380,11 @@ class MainActivity : AppCompatActivity() {
}
if (ambient != null) {
banner.text = "⚠ ${ambient.label}"
- banner.background.mutate().setTint(when {
+ banner.background.mutate().setTint(com.rfsentinel.app.ui.ThemeManager.ink(this, when {
ambient.score >= 85 -> 0xFFB3261E.toInt()
ambient.score >= threshold -> 0xFFC8431A.toInt()
else -> WEAK_COLOR
- })
+ }))
slimBanner(false)
showBannerClose(true)
return
@@ -1402,7 +1402,7 @@ class MainActivity : AppCompatActivity() {
else -> WEAK_COLOR to "Weak match only (verify): ${top.best!!.label}"
}
banner.text = if (flagged.size > 1 && following == null) "$text (+${flagged.size - 1} more)" else text
- banner.background.mutate().setTint(color)
+ banner.background.mutate().setTint(com.rfsentinel.app.ui.ThemeManager.ink(this, color))
slimBanner(top == null && following == null)
showBannerClose(true)
}