From 654a5f9e26636482f5cc751fbd1a738e42d52fc7 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 19 Aug 2026 22:59:07 +0300 Subject: [PATCH] =?UTF-8?q?fix(app-phone):=20=D0=B0=D0=BF=D0=BF=D0=B0?= =?UTF-8?q?=D1=80=D0=B0=D1=82=D0=BD=D1=8B=D0=B9=20back=20=E2=80=94=20?= =?UTF-8?q?=D0=B4=D0=B5=D1=82=D0=B0=D0=BB=D0=B8=20=E2=86=92=20=D0=BA=D0=B0?= =?UTF-8?q?=D1=82=D0=B0=D0=BB=D0=BE=D0=B3,=20=D0=B8=D0=BD=D1=84=D0=BE=20?= =?UTF-8?q?=D0=BE=D0=B1=20=D0=BE=D1=87=D0=BA=D0=B0=D1=85=20=E2=86=92=20?= =?UTF-8?q?=D0=BF=D1=83=D0=BB=D1=8C=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BackHandler в ViewMateApp (DETAILS → CATALOG, GLASSES_INFO → GLASSES); раньше системная кнопка сворачивала приложение. Проверено на железе. --- .../src/main/kotlin/pw/binom/viewmate/phone/ui/ViewMateApp.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app-phone/src/main/kotlin/pw/binom/viewmate/phone/ui/ViewMateApp.kt b/app-phone/src/main/kotlin/pw/binom/viewmate/phone/ui/ViewMateApp.kt index 77f7fb9..7b23f75 100644 --- a/app-phone/src/main/kotlin/pw/binom/viewmate/phone/ui/ViewMateApp.kt +++ b/app-phone/src/main/kotlin/pw/binom/viewmate/phone/ui/ViewMateApp.kt @@ -1,5 +1,6 @@ package pw.binom.viewmate.phone.ui +import androidx.activity.compose.BackHandler import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding @@ -29,6 +30,9 @@ fun ViewMateApp() { var selected by remember { mutableStateOf(null) } PhoneTheme { + BackHandler(enabled = screen == Screen.DETAILS || screen == Screen.GLASSES_INFO) { + screen = if (screen == Screen.GLASSES_INFO) Screen.GLASSES else Screen.CATALOG + } Scaffold( containerColor = PhoneBackground, bottomBar = {