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.
Kotlin airtagalprandroidandroid-autoanti-surveillancebluetooth-low-energybody-cameracounter-surveillancedrone-detectionflock-safetyimsi-catcher-detectorpolice-detectorpolice-scannerprivacyremote-idrtl-sdrsdrsurveillance-detectiontracker-detectionwifi
Main screen: less space above the buttons, around the slider and on list headers
CIS-C045ac5da68aae
diff --git a/app/src/main/java/com/rfsentinel/app/ui/DeviceAdapter.kt b/app/src/main/java/com/rfsentinel/app/ui/DeviceAdapter.ktindex 05b6754..9b33c55 100644--- a/app/src/main/java/com/rfsentinel/app/ui/DeviceAdapter.kt+++ b/app/src/main/java/com/rfsentinel/app/ui/DeviceAdapter.kt@@ -213,7 +213,7 @@ class DeviceAdapter(fun groupHeader(parent: ViewGroup): TextView = TextView(parent.context).apply {val dp = resources.displayMetrics.densitylayoutParams = RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)- setPaddingRelative((12 * dp).toInt(), (14 * dp).toInt(), (12 * dp).toInt(), (4 * dp).toInt())+ setPaddingRelative((12 * dp).toInt(), (6 * dp).toInt(), (12 * dp).toInt(), (4 * dp).toInt())textSize = 14fsetTypeface(typeface, Typeface.BOLD)val tv = android.util.TypedValue()diff --git a/app/src/main/java/com/rfsentinel/app/ui/MainPanes.kt b/app/src/main/java/com/rfsentinel/app/ui/MainPanes.ktindex 51d937e..2caf614 100644--- a/app/src/main/java/com/rfsentinel/app/ui/MainPanes.kt+++ b/app/src/main/java/com/rfsentinel/app/ui/MainPanes.kt@@ -76,13 +76,17 @@ class MainPanes(private val activity: AppCompatActivity, private val b: ActivitymapBorder.setStroke((2 * density).toInt(), accent)radarBorder.setStroke(if (several) (2 * density).toInt() else 0, accent)b.radarPane.clipToOutline = several- val handle = (20 * density).toInt()+ // Thin in the layout to leave room for the panes; the touch area reaches over their edges, above them.+ val handle = (24 * density).toInt()+ val overlap = (-7 * density).toInt()for ((h, grip) in listOf(b.handleA to b.gripA, b.handleB to b.gripB)) {h.layoutParams = (h.layoutParams as LinearLayout.LayoutParams).apply {width = if (landscape) handle else LinearLayout.LayoutParams.MATCH_PARENTheight = if (landscape) LinearLayout.LayoutParams.MATCH_PARENT else handleweight = 0f+ setMargins(if (landscape) overlap else 0, if (landscape) 0 else overlap, if (landscape) overlap else 0, if (landscape) 0 else overlap)}+ h.elevation = densitygrip.layoutParams = (grip.layoutParams as FrameLayout.LayoutParams).apply {width = ((if (landscape) 5 else 40) * density).toInt()height = ((if (landscape) 40 else 5) * density).toInt()@@ -93,7 +97,7 @@ class MainPanes(private val activity: AppCompatActivity, private val b: Activityweight = Prefs.paneWeight(activity, p)if (landscape) { width = 0; height = LinearLayout.LayoutParams.MATCH_PARENT }else { width = LinearLayout.LayoutParams.MATCH_PARENT; height = 0 }- topMargin = if (!landscape && p != "list" && p == Prefs.PANES.firstOrNull { it in panes }) (6 * density).toInt() else 0+ topMargin = if (!landscape && p != "list" && p == Prefs.PANES.firstOrNull { it in panes }) (2 * density).toInt() else 0}}b.contentArea.requestLayout()diff --git a/app/src/main/java/com/rfsentinel/app/ui/StatusPanel.kt b/app/src/main/java/com/rfsentinel/app/ui/StatusPanel.ktindex 3c31a84..6bf3436 100644--- a/app/src/main/java/com/rfsentinel/app/ui/StatusPanel.kt+++ b/app/src/main/java/com/rfsentinel/app/ui/StatusPanel.kt@@ -79,9 +79,8 @@ class StatusPanel(private val context: Context) {}root.addView(gps, LinearLayout.LayoutParams(-1, -2).apply { bottomMargin = (4 * dp).toInt() })root.addView(noteRow, LinearLayout.LayoutParams(-1, -2).apply { bottomMargin = (4 * dp).toInt() })- root.addView(strip, LinearLayout.LayoutParams(-1, -2))- root.addView(cards)- root.setPadding(0, 0, 0, (4 * dp).toInt())+ root.addView(strip, LinearLayout.LayoutParams(-1, -2).apply { bottomMargin = (4 * dp).toInt() })+ root.addView(cards, LinearLayout.LayoutParams(-1, -2).apply { bottomMargin = (4 * dp).toInt() })}private fun iconButton(text: String, description: String) = TextView(context).apply {diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xmlindex aa7edf8..4ef7464 100644--- a/app/src/main/res/layout/activity_main.xml+++ b/app/src/main/res/layout/activity_main.xml@@ -5,7 +5,7 @@android:layout_height="match_parent"android:orientation="vertical"android:paddingStart="16dp"- android:paddingTop="4dp"+ android:paddingTop="2dp"android:paddingEnd="16dp"android:paddingBottom="8dp">@@ -179,7 +179,7 @@<HorizontalScrollViewandroid:layout_width="match_parent"android:layout_height="wrap_content"- android:layout_marginTop="6dp"+ android:layout_marginTop="4dp"android:scrollbars="none"><com.google.android.material.chip.ChipGroup