commit | ab7ad3e890ab6b7c003ed0e589380639774581b7 | [log] [tgz] |
---|---|---|
author | Christian Göllner <chrisgollner@google.com> | Thu Dec 16 18:58:15 2021 +0100 |
committer | Christian Göllner <chrisgollner@google.com> | Thu Jan 06 11:53:58 2022 +0000 |
tree | ba0d49947f5503186836a881232d598edd1a3f80 | |
parent | 72049508c5ea65357e890724d9e29a469ca3b198 [diff] |
Preserve shade state on fold/unfold. Prevents the shade from closing when the device folds/unfolds. When the device folds/unfolds there is a screen off event, which causes the shade to be closed. The solution here is to listen for device state changes, and when we detect that a fold change is happening, we indicate that the shade should stay open. Test: Unit tests + manually on device Bug: 197187018 Fixes: 197187018 Change-Id: Ief5e774161a22cf6fa63e9fb69a06ad6448fcf7a