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.

Group by Category by default

CIS-C03f223bf63ed9
diff --git a/app/src/main/java/com/rfsentinel/app/ui/DeviceOrder.kt b/app/src/main/java/com/rfsentinel/app/ui/DeviceOrder.kt
index 39f8920..3483d86 100644
--- a/app/src/main/java/com/rfsentinel/app/ui/DeviceOrder.kt
+++ b/app/src/main/java/com/rfsentinel/app/ui/DeviceOrder.kt
@@ -45,7 +45,8 @@ object DeviceOrder {
class Section<T>(val header: String?, val items: List<T>)
fun sort(context: Context) = Sort.entries.firstOrNull { it.name == Prefs.listSort(context) } ?: Sort.ALERTS
- fun group(context: Context) = Group.entries.firstOrNull { it.name == Prefs.listGroup(context) } ?: Group.NONE
+ // Grouped by category until a grouping is picked (picking None is kept).
+ fun group(context: Context) = Group.entries.firstOrNull { it.name == Prefs.listGroup(context) } ?: Group.CATEGORY
/** Category groups, in the filter chips' spirit: what matters most first. */
private val CATEGORY_ORDER = listOf(