glasses: start Mercury kill guard with service; batch scroll deltas into one drag per tick

This commit is contained in:
2026-09-25 20:07:42 +03:00
parent c69e8a2e80
commit fe95d249e9
2 changed files with 126 additions and 63 deletions
@@ -60,6 +60,10 @@ class VmService : LifecycleService() {
instance = this
controller = VmGlassesController.fromContext(this)
Log.i(TAG, "VmService onCreate")
// Стража поднимаем сразу при старте сервиса, а не в момент запуска гостя: убийца
// (BackgroundAppManager) успевает убить за ~2 c после смены top_app, а запуск гостя
// сам эту смену и вызывает. Подробности — в VmGlassesController.ensureMercuryKillGuard.
controller.ensureMercuryKillGuard()
startForeground()
startServer()
registerMdns()