material-components / material-components/material-components-android
[MaterialContainerTransform] Strange behavior when exiting from the first activity after shared element transition
@hunterstich is already working on this.
Since Feb 18, 2022.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:**
The screen goes black except the starting view of the transition when exiting from the first activity after returning from the second activity by shared element transition.
Here is the video: https://i.imgur.com/eMF2tZo.mp4
Besides, you can see in the video that the screen flashes after transitting to the second activity. Is it a bug or my incorrect usage?
**Expected behavior:**
The app exits normally.
**Source code:**
[transition-demo.zip](https://github.com/material-components/material-components-android/files/4720484/transition-demo.zip)
**Android API version:**
It seems that this problem only happens on API 29 and above (tested on Emulator with API 28-30).
**Material Library version:**
1.2.0-beta01 and 1.3.0-alpha01
**Device:**
Pixel 2 (Android 10) and Emulator
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.