summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-05-19 18:49:53 +0800
committerRiddle Hsu <riddlehsu@google.com>2021-05-19 19:09:57 +0800
commit717b2a58eff1442dc845dae312bd7d0de868d645 (patch)
tree935cb02d9aa760402b6c0a760d7f8440201a50dc /tools/aapt2/java/JavaClassGenerator_test.cpp
parent21f0b70da523f8383c6ec9b4e047cb200e9cd245 (diff)
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions