mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
8272523b5b
The ExoPlayer backing voice messages was built without a wake mode, so it defaulted to C.WAKE_MODE_NONE and held no wake lock. The CPU was free to suspend once the screen turned off, cutting playback short. Build it with C.WAKE_MODE_LOCAL instead. The media is a local file, so no WifiLock is needed, and android.permission.WAKE_LOCK is already in the merged manifest. The media viewer players are left alone: they already pause on ON_PAUSE, so a wake lock there would keep the CPU awake for a player the user has intentionally backgrounded.