SeriesGuide
SeriesGuide copied to clipboard
Shared element enter transition causes view visibility to reset on restart
Inside a fragment "receiving" a shared element (here the movie poster) as part of a transition animation set an unrelated view (here the progress bar) to be GONE
. Then launch an activity on top (ensure onStop
is called). Then go back.
Expected: view visibility state remains the same as before leaving the activity.
Actual: view visibility state re-set to VISIBLE
just before onStop
is called. When returning view is VISIBLE
. ☹️
Removing the shared element transition fixes the issue.
Source code: MovieDetailsFragment
Hi Uwe, have this been resolved yet? If not can you point me at which commit this occurred so I can replicate the issue. Thanks
If you revert https://github.com/UweTrottmann/SeriesGuide/commit/8959061da79b394154331103fe92e2f1cbff679c you should be able to reproduce it. (Sorry, looks like GitHub only linked the commit from my internal repo, not this public one 😞).