commit | c1a18dea89f0462979a31b7f1799cabd369a4135 | [log] [tgz] |
---|---|---|
author | Jiaming Liu <jiamingliu@google.com> | Fri Oct 28 22:31:33 2022 +0000 |
committer | Jiaming Liu <jiamingliu@google.com> | Tue Nov 01 03:39:54 2022 +0000 |
tree | 33290d1c15e46c2f45f46cae02b5e4ef5d1b73c6 | |
parent | fac53656ed8c29b00a765fea849b68e4177d150f [diff] |
Fix invalidate rotation value which causes CTS failures The rotation value should be restored only if there is a valid value for mHalfFoldSavedRotation (i.e. mHalfFoldSavedRotation != -1), otherwise, the rotation value will become -1 and cause failures in tests. Bug: 255241217 Test: atest android.hardware.devicestate.cts.DeviceStateManagerTests Change-Id: I07f0d2543d345016c5508046e568e8372f048e27