Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

[Unsplash] Reenter transition not working edge case #86

@thespacemanatee

Description

@thespacemanatee

Hello,

Thank you so much for making this really helpful example. I found an edge case when swiping to images that are not initially visible in the RecyclerView of the source activity:

Working:

  1. When we tap on the first row of images (first 3 images)
  2. Swipe to the last image
  3. Press back to go back to the previous activity, shared element reenter transition works

Demo

video_2022-04-14_15-40-03.mp4

Not Working:

  1. When we tap on any other image
  2. Swipe to the last image
  3. Press back to go back to the previous activity, the shared element reenter transition does not work

Demo

video_2022-04-14_15-40-00.mp4

I thought that perhaps it's because the ViewHolder in the not working example wasn't visible hence the transition mapping won't work, but why does it work when we tap on the first row of images? In any case, how can we fix this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions