Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2afc5c41 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Keep current orientation if the activity doesn't provide orientation

A translucent activity with unspecified orientation won't affect display
orientation (see WindowContainer#getOrientation(int)), so when pre-
computing target rotation (e.g. ActivityRecord#onConfigurationChanged),
it should not consider sensor rotation.

Fix: 434101837
Flag: EXEMPT bugfix
Test: DisplayContentTests#testRotationForActivityInDifferentOrientation
Test: Enable auto rotation. A translucent activity enters pip on a
      fixed portrait activity. Rotate device to landscape. Expand pip.
      The expanded activity should keep portrait appearance.
Change-Id: If951145912180fe53ef06e06911d985e6d0e75be
parent d55f80cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment