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
Loading
Please register or sign in to comment