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.

Mute button: description names the device and the long-press

CIS-C07dc7602d8675
diff --git a/app/src/main/java/com/rfsentinel/app/ui/DeviceAdapter.kt b/app/src/main/java/com/rfsentinel/app/ui/DeviceAdapter.kt
index b3cd8df..05b6754 100644
--- a/app/src/main/java/com/rfsentinel/app/ui/DeviceAdapter.kt
+++ b/app/src/main/java/com/rfsentinel/app/ui/DeviceAdapter.kt
@@ -190,7 +190,8 @@ class DeviceAdapter(
b.muteButton.imageTintList = android.content.res.ColorStateList.valueOf(
if (row.muted) ChipStyle.accent(b.root.context).first else ChipStyle.onSurface(b.root.context))
b.muteButton.alpha = if (row.muted) 1f else 0.6f
- b.muteButton.contentDescription = if (row.muted) "Unmute this device's alerts" else "Mute this device's alerts"
+ b.muteButton.contentDescription = if (row.muted) "Unmute ${row.title}"
+ else "Mute ${row.title} for 30 minutes. Long-press to mute until turned back on."
b.muteButton.setOnClickListener { mute(row, false) }
b.muteButton.setOnLongClickListener { mute(row, true); true }
}