This repository shows how you can get a black screen when using a shared element transition.
This is how you can reproduce this bug on Android 11:
- Start the detail activity.
- Rotate the screen.
- Go back to the original Activity by using the back gesture (or button).