SeriesGuide icon indicating copy to clipboard operation
SeriesGuide copied to clipboard

Shared element enter transition causes view visibility to reset on restart

Open UweTrottmann opened this issue 7 years ago • 2 comments

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. ☹️

progress-bar-reappears

Removing the shared element transition fixes the issue.

Source code: MovieDetailsFragment

UweTrottmann avatar Oct 11 '17 12:10 UweTrottmann

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

lineargs avatar Jan 23 '18 21:01 lineargs

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 😞).

UweTrottmann avatar Jan 24 '18 07:01 UweTrottmann