SchildiChat / SchildiChat-android

Matrix client / Element Android fork
https://schildi.chat/android/
Apache License 2.0
386 stars 50 forks source link

Keep screen on while recording voice messages #91

Closed discapacidad5 closed 2 years ago

discapacidad5 commented 2 years ago

Steps to reproduce

Where do you start? What can you see? When you stepped on the record button and slid it so that it stays recorded without having your finger on the screen, and starts recording a long message if the screen turns off the recording clears What do you click? I click on voice mic Intended result and actual result

What did you expect? I was hoping I could record the entire voice memo and the screen won't turn off while I was recording I was hoping that just like when you send a voice message for another message or when I watch a video, the phone remains active while it is recording. #### What happened instead? The screen turned off during recording and the recording was completely erased Start recording again and the screen turned off again and the same thing happened again on the screen is set to turn off 30 seconds if the phone is not in use I think this could be fixed by sending a message to keep the screen on Keep the phone awake while recording this way This way the screen would not turn off even if it takes a long time to record There are applications like reading applications with video applications that keep the phone awake while it is playing. I don't know about programming but I understand that this is a command that is sent every so often to keep the phone active.

Your phone model Samsung s9

Operating system version Android 10.0

Application version and app store Element versión 1.3.1 olm versión 3.2.4

Homeserver Matrix.org

SpiritCroc commented 2 years ago

Note to self: add FLAG_KEEP_SCREEN_ON while recording

SpiritCroc commented 2 years ago

Again: please link upstream issues: https://github.com/vector-im/element-android/issues/4194 This would be more helpful than pasting my comment there without context.