How to prevent Screen Orientation change when Activity finishes on Android 8.1 Version Devices?
问题 I'm working on an app and encountered a strange behavior on 8.1 Devices (Pixel2, Nexus5x), so I wrote a small App to verify this behavior. MainActivity is locked to portrait mode while LandscapeActivity is locked to landscape . MainActivity starts the LandscapeActivity for Result. Screen Switches from portrait to landscape as expected. When LandscapeActivity is finished it propagates the Result to MainActivity , while switching back to portrait (as expected). But Sometimes I encounter kind of