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

Skip to content
Commit 1c7560ce authored by Evan Rosky's avatar Evan Rosky Committed by Android Build Coastguard Worker
Browse files

Add a failsafe to update surface position after activity-level transit

ActivityRecord isn't expected to change independently, however, there
is now compat behavior that will enable client-code to trigger changes
to an AR's surface outside of any WM-side lifecycles.

This already causes glitchy offsets w/ legacy during animation, but
w/ shell, the activity could get stuck with the offset if the compat
properties were changed during the animation.

Until we come-up with a proper solution for this, just "sync up" the
surface state when idle so at-least it won't be stuck. It will still
have an offset during the animation, but that is the behavior we
already had.

Bug: 282129721
Test: Use a forced-landscape device (eg. unfolded landscape) and
      launch an activity which has portrait rotation in manifest
      but then requests landscape rotation in onResume before
      animation finishes.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2874d8877051e56e169708a9634829bf45a35e9b)
Merged-In: I92ee7884687433b12bc2649ade7416abb9953943
Change-Id: I92ee7884687433b12bc2649ade7416abb9953943
parent c71f7542
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment