Skip to content
Commit 717b2a58 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Use current rotation for snapshot of canceling fixed rotation

The display rotation doesn't change in the case (the app is rotated).
So use the identity matrix for the snapshot surface.

Also fix a potential case of app freeze timeout:
(e.g. from AR#onCancelFixedRotationTransform)
1. Previous states: allDrawn=true, mLastAllDrawn=true.
2. Request redraw:
   AR#clearAllDrawn -> allDrawn=false, mLastAllDrawn=true
3. App reported drawn:
   AR#updateAllDrawn -> allDrawn=true, mLastAllDrawn=true
4. AR#checkAppWindowsReadyToShow skipped by allDrawn==mLastAllDrawn
   that missed to unfreeze even allDrawn was changed to true.

Bug: 188615885
Test: Auto rotation enabled. Put device in landscape. Launch a
      rotatable app from portrait launcher and rotate the device
      to portrait immediately. The snapshot should keep the same
      rotation for animation.

Change-Id: If9fe8e317669d3d9ef57af9acdbdbf53cd575efe
parent 21f0b70d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment