QR экран: блокировка спама при смене темы — тема меняется только через circular reveal, нажатия игнорируются пока анимация не завершена.

This commit is contained in:
2026-04-08 22:12:47 +05:00
parent ae78e4a162
commit 7f79e4e0be

View File

@@ -329,11 +329,10 @@ fun MyQrCodeScreen(
} }
} }
} else { } else {
onToggleTheme() // drawToBitmap failed — skip
} }
} else {
onToggleTheme()
} }
// else: cooldown active — ignore tap
}, },
modifier = Modifier.onGloballyPositioned { coords -> modifier = Modifier.onGloballyPositioned { coords ->
val pos = coords.positionInRoot() val pos = coords.positionInRoot()