android-slideshow icon indicating copy to clipboard operation
android-slideshow copied to clipboard

Do not show List Activity when entering picture in picture mode

Open ScreamingHawk opened this issue 7 years ago • 3 comments

When entering picture in picture mode, the previous list activity is shown.

It would be good if the application closed the List Activity instead, while keeping it available in the back stack.

ScreamingHawk avatar Sep 14 '17 20:09 ScreamingHawk

Related SO question: https://stackoverflow.com/questions/45187961/task-list-and-back-stack-with-android-o-picture-in-picture-mode

Looks like there will be a lot of manual handling to get this to work. I suspect it would be easier to create new activities when using the back button and completely ignore (clear) the back stack.

ScreamingHawk avatar Sep 14 '17 20:09 ScreamingHawk

Tried:

  • launchMode = singleX in manifest. Weird behaviour on slideshow activity
  • startActivityForResult closing activity when using PIP mode. Doesn't always call correctly
  • Manually handling back stack. Fine but doesn't fix the problems with slideshow activity behaviour

Weird slideshow activity behaviour. Start slideshow. Enter PIP. minimise app. Expend PIP to full screen. Click back (to enter list view). Minimise activity. Open PIP activity. Expected: To be in list view. Actual: Slideshow begins automatically

ScreamingHawk avatar Oct 12 '17 19:10 ScreamingHawk

This issue bugs me way more than it should

ScreamingHawk avatar Nov 30 '17 18:11 ScreamingHawk