mirror of
https://git.undefined-dev.fr/Blendman974/faceclaw.git
synced 2026-11-19 21:03:09 +00:00
ensurePermissions looked up the Activity before checking whether any permission was missing, and getActivity() throws when there is none. Android starts the app in the background with no Activity (a home-widget update, a notification-listener rebind), and the glasses session runs from there until the app is opened. So in that state every "Hey Even" failed in ensureVoicePermissions even though the mic permission was granted, and the voice dialog kept showing the idle "Voice control stopped.". The same throw hit ensureBlePermissions. The Activity is now only looked up when a permission actually has to be requested. A capture that fails to start for any reason other than a denied permission now says so in the dialog instead of leaving the idle status up.