feat(app-glasses): AR-метка RayNeoX2 (com.rayneo.mercury.app) + тема + landscape
Из pair-view: meta-data com.rayneo.mercury.app=true — очки распознают приложение как AR (без неё открывалось как обычное). Тема Theme.ViewMateGlasses (чёрный фон, fullscreen), screenOrientation landscape, hardwareAccelerated. Плюс фикс краша: prefs читались в конструкторе Application (до attachBaseContext) — перенесено в onCreate. Проверено на железе: открывается через лаунчер нормально.
This commit is contained in:
@@ -223,7 +223,7 @@ class HostConnection(
|
||||
is SetMode -> addMessage("SetMode: ${msg.mode}")
|
||||
|
||||
is SetScale -> {
|
||||
GlassesApp.instance.scale.value = msg.scale.coerceIn(0.5f, 1f)
|
||||
GlassesApp.instance.applyScale(msg.scale)
|
||||
log("app", "scale → ${msg.scale}")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user