element-hq / element-x-android

Android Matrix messenger application using the Matrix Rust Sdk and Jetpack Compose
GNU Affero General Public License v3.0
988 stars 133 forks source link

Call Picture in Picture not happening when using app switcher (instead of "go to home" command") #3196

Open toger5 opened 2 months ago

toger5 commented 2 months ago

Your use case

What would you like to do?

Switch back to the chat during a call

Why would you like to do it?

to chat during a video call.

How would you like to achieve it?

Use the android gesture for switching between apps (swipe up from the bottom of the screen and hold)

It works if:

Have you considered any alternatives?

No response

Additional context

No response

Are you willing to provide a PR?

No

bmarty commented 2 months ago

Investigating this and it seems to depend on the device. On my side this is working as expected on a real device (API 34), but on my emulator (API 33) I can repro the issue. enterPictureInPictureMode is returning false in this case. I am not sure we can do anything about it :/

toger5 commented 2 weeks ago

I played around with it more and my current theory is, that my device stop allowing pip if it gets too hot. Calls make it hot. So thats why I hit this issue occasionally.