Jellyfin-android: Going back after coming from PiP doesn't return to Jellyfin

Created on 1 Sep 2020  路  7Comments  路  Source: jellyfin/jellyfin-android

Describe the bug
When coming out of PIP, when i press back (or 'gesture' back in my case), i return to the homescreen of my phone instead of to jellyfin.

To Reproduce

  1. Play video
  2. Press home to go to PiP mode
  3. Return to fullscreen video
  4. Press back

Expected behavior
Pressing back should return to jellyfin (specifically the last view) instead of to the android homescreen

System (please complete the following information):

  • App version: 2.0.0-rc.3
  • Android version: Android 10
  • Device manufacturer and model: Oneplus 6T
  • Jellyfin server version: 10.6.3
  • The type of video player implementation used: ExoPlayer
bug exoplayer

Most helpful comment

Amazing work again. I am going to study the commits in hopes of being able to contribute to the project myself later on

All 7 comments

This is unfortunately a "bug" (feature?) in the Android framework. If you enter PiP mode, the system detaches the activity from its stack, resulting in such behaviour. See here for more information: https://stackoverflow.com/questions/45187961/task-list-and-back-stack-with-android-o-picture-in-picture-mode

(I coincidentally googled this issue just yesterday, and found that link in my research.

Could it not be possible to reattach when returning to fullscreen mode?

I fear not, because the intent to re-open the activity is controlled by the system, and I don't know whether the necessary APIs exist for that.

Is it possible to open the jellyfin app to a certain episode? Then you could create a back button that doesn't back but opens the app to that episode

Confirmed as well with 2.0.0 release.

We're aiming to fix that in the next major release. #166 already provides a foundation for that.

Amazing work again. I am going to study the commits in hopes of being able to contribute to the project myself later on

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EspadaV8 picture EspadaV8  路  7Comments

vegedb picture vegedb  路  6Comments

Maxr1998 picture Maxr1998  路  5Comments

nielsvanvelzen picture nielsvanvelzen  路  5Comments

idittansikte picture idittansikte  路  6Comments