summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Jiaming Liu <jiamingliu@google.com> 2023-09-02 02:04:47 +0000
committer Cherrypicker Worker <android-build-cherrypicker-worker@google.com> 2023-09-06 04:26:52 +0000
commitcfeaf6a8b043ddeb2eba6371d0021d82ed00f460 (patch)
treec241a6e98fb56a04115b1e16627b7d86f45b01e5 /api/api.go
parent8aacb8172470090ff17ea81e405c22206117cf0f (diff)
Use rotation from WindowConfiguration to rotate FoldingFeature to avoid race condition
We used DisplayInfo.rotation to rotate the FoldingFeature while using WindowConfiguration to validate the rotated FoldingFeature. Based on logs in b/295277561 and b/297215998, the rotations in WindowConfiguration and DisplayInfo were out of sync and caused validation failure and app crash. Using the rotation from WindowConfiguration for feature rotation should prevent this issue. Bug: 295277561 Bug: 297215998 Bug: 297153447 Test: atest CtsWindowManagerJetpackTestCases Test: atest WMJetpackUnitTests:ExtensionHelperTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6867926666be48de83363a23cd7aeb009867f407) Merged-In: Iedb1365d97bcfe14643199a4000472aadeee8282 Change-Id: Iedb1365d97bcfe14643199a4000472aadeee8282
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions