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

Commit feaa2f2b authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Only assert transform hint if the orientation of size is changed

The test may be failed by
1. surfaceChanged: width=720 height=1024 transformHint=0
2. surfaceChanged: width=720 height=1120 transformHint=0 <--
3. surfaceChanged: width=1184 height=560 transformHint=4

The height change could be from insets which should be fine.
The purpose of the test is to ensure the size and hint have
consistent orientation, so ignore the noise case.

Fix: 294582810
Test: SurfaceControlTests#testSurfaceChangedOnRotation
Change-Id: Iefab4381934e655a4fa4217cbb94495de5f3ddfb
parent 83a2357e
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