commit | 257a6cd367e69412ce09c19c288a49cc17adaae1 | [log] [tgz] |
---|---|---|
author | Charles Chen <charlesccchen@google.com> | Fri Jan 06 01:10:25 2023 +0800 |
committer | Charles Chen <charlesccchen@google.com> | Fri Mar 31 06:49:42 2023 +0000 |
tree | a36c95ba9ed64b53ecdb56810f68d9aaeb327efa | |
parent | de02076a33ec087b059cc1e3d7e54e3be7b8a515 [diff] |
Use RotationSession instead of orientation request In large devices with embedding feature and orientation request enabled, the protrait activity will show in letterbox for user experience in T-QPR3. This CL uses rotation session instead of setting orientation requests to verify rounded corners with all orientations. Also, the test added the test window right after activity was launched, which may get a wrong metrics because the configuration value at #onCreate is unpredicatble. Test: atest RoundedCornerTest --iterations Bug: 264016570 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:44f7d498c816e8845a28b629740b6f76d490a4a0) Merged-In: Id1a4e46493a9c665f1160c5ca66b14dc6b5fca91 Change-Id: I896f22ad0e5010ed0c344085bb466d873de8ca51