fix(android): retain action layer and idle rotation across turns

This commit is contained in:
zenord
2026-10-13 09:36:29 +08:00
parent 24ec3ab044
commit a68988e0ba
21 changed files with 554 additions and 58 deletions
+2
View File
@@ -24,6 +24,8 @@ object DialogueProtocol {
fun parseEvent(text: String) = when (text) {
"auth" -> ServerEvent("auth", EventKind.AUTH, Payload())
"auth failed" -> ServerEvent("auth", EventKind.AUTH, Payload(false))
"hello available" -> ServerEvent("hello", EventKind.HELLO, Payload(fields=mapOf("action_available" to true)))
"hello unavailable" -> ServerEvent("hello", EventKind.HELLO, Payload(fields=mapOf("action_available" to false)))
"hello" -> ServerEvent("hello", EventKind.HELLO, Payload())
"error" -> ServerEvent("error", EventKind.ERROR, Payload())
"unknown" -> ServerEvent("auth_ready", EventKind.UNKNOWN, Payload())