material-components / material-components/material-components-android

[MaterialContainerTransform] Strange behavior when exiting from the first activity after shared element transition

Open
#1,366 3 comments 6 reactions 1 assignee View on GitHub

@hunterstich is already working on this.

Since Feb 18, 2022.

bug Feature: Transition
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.