From a8486d531a28570a8a2fe409339fb6eb395f034b Mon Sep 17 00:00:00 2001 From: Seb3thehacker Date: Wed, 11 Nov 2026 12:53:10 -0800 Subject: [PATCH] Debug builds send the test message a few seconds after the tap, time to open the car preview --- .../java/app/seb3thehacker/gearslip/ui/SettingsScreen.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/SettingsScreen.kt b/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/SettingsScreen.kt index 4daf347..7b20cc6 100644 --- a/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/SettingsScreen.kt +++ b/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/SettingsScreen.kt @@ -346,8 +346,11 @@ private fun DebugSection() { SettingsSection("Debug build") { SettingsRow( "Send a test message", - Modifier.clickable { TestMessage.post(context) }, - subtitle = "Posts a message notification to read on the car", + // After a few seconds, so there's time to open the car preview and watch it arrive. + Modifier.clickable { + android.os.Handler(android.os.Looper.getMainLooper()).postDelayed({ TestMessage.post(context.applicationContext) }, 5_000) + }, + subtitle = "Posts a message notification in 5 seconds, time to open the car preview", icon = Icons.AutoMirrored.Filled.Send, ) SettingsDivider()