This is not a bug, this is a feature called picture in picture (PIP).la acción que detecta si una determinada aplicación está en primer plano, en segundo plano o no, falla seriamente con Twitch. Especialmente cuando lo puse en modo de ventana para mostrar Twitch encima de otras aplicaciones.
Thanks!This is not a bug, this is a feature called picture in picture (PIP).
You can read more about it here:
Add videos using picture-in-picture (PiP) | Views | Android Developers
Android 8.0 allows activities to launch in picture-in-picture (PiP) modedeveloper.android.com
You can also use this app to detect what is the actual package name and activity in the foreground.
In the attached screenshot you can see that the foreground application is my calculator regardless of the fact that I am playing a YouTube video.