| commit | dba38a8c380aed9de7537cf08d4b01e0af3dc2d8 | [log] [tgz] |
|---|---|---|
| author | Riddle Hsu <riddlehsu@google.com> | Wed May 07 20:15:48 2025 +0800 |
| committer | Riddle Hsu <riddlehsu@google.com> | Wed May 07 20:15:48 2025 +0800 |
| tree | 74df14b931215e5557584ee9bb242fd1ce40fbf6 | |
| parent | 27c41e499a2826eb0a1c3ef270e274068e18d1d1 [diff] |
Do not use cached insets if rotation is different
Avoid reporting the insets in a different rotation to apps.
Bug: 415262076
Flag: com.android.window.flags.use_cached_insets_for_display_switch
Test: Disable auto rotation. Fold device in rotation 0. Press rotation
button to rotate to 270 degree. Unfold device. Observe the insets
from setOnApplyWindowInsetsListener.
Change-Id: Iafd82b28283826d486ed2ab8d86aa05392a6ee30