commit | 4f140f96e892b6cfd3f30ac711951b9fb276d713 | [log] [tgz] |
---|---|---|
author | Alex Chau <alexchau@google.com> | Thu Oct 07 14:44:01 2021 +0100 |
committer | Alex Chau <alexchau@google.com> | Thu Oct 07 14:44:01 2021 +0100 |
tree | 8fc913e529d1f3d390b0370496e583141e136a7b | |
parent | b01c3902993894315de2c7d2f671c720510dde93 [diff] |
Use displayId to determine CHANGE_ACTIVE_SCREEN - Currently CHANGE_ACTIVE_SCREEN is dispatched when rotating too, which is incorrect. mScreenSizeDp is different in portrait and landscape, and varies more than swapping width/height due to different insets applied. Therefore, use the change of unique display id as a signal instead. Fix: 202366729 Test: Rotate device, overview stays Test: Unfold devices, overview goes away Change-Id: Id8a7d4a1e237717521bfc5a5a67f23c4ee801c61