SchildiChat / SchildiChat-android

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

tap on audio messages will prompt "open with" and can trigger default app different from Schildichat #214

Open sette15 opened 7 months ago

sette15 commented 7 months ago

Describe the bug Any voice/audio message on Shildichat have a "play" button and a wave form. If you miss the (tiny) "play" button and tap further away, an "open with" message will pop up asking where you want to reproduce audio, however among the options there is no Schildichat. I pressed "Spotify" as default by mistake once and now any voice message will be opened on Spotify, which is really annyoing.

To Reproduce Steps to reproduce the behavior: On a voice message, tap further away from the "play" button.

Expected behavior Play within Schildichat always and add an option to "open with" only by long press the audio, for instance.

Screenshots photo_2023-11-16_14-42-16

Smartphone (please complete the following information):

Additional context

Upstream relevance

SpiritCroc commented 7 months ago

Had a quick look at it but didn't see where the click listener for this is in the code so far. Since it's not a high priority for me personally, open for contributions I guess. I'm probably fine with removing the click listener completely for voice messages ( != audio messages), as long as download on longpress still works.