mirror of
https://github.com/twinksoftware/Gearslip.git
synced 2026-11-12 00:32:26 +01:00
Debug builds send the test message a few seconds after the tap, time to open the car preview
This commit is contained in:
1 parent
806ffdf2b8
commit
a8486d531a
1 file changed
+5
-2
@@ -346,8 +346,11 @@ private fun DebugSection() {
|
|||||||
SettingsSection("Debug build") {
|
SettingsSection("Debug build") {
|
||||||
SettingsRow(
|
SettingsRow(
|
||||||
"Send a test message",
|
"Send a test message",
|
||||||
Modifier.clickable { TestMessage.post(context) },
|
// After a few seconds, so there's time to open the car preview and watch it arrive.
|
||||||
subtitle = "Posts a message notification to read on the car",
|
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,
|
icon = Icons.AutoMirrored.Filled.Send,
|
||||||
)
|
)
|
||||||
SettingsDivider()
|
SettingsDivider()
|
||||||
|
|||||||
Reference in new issue
Block a user