mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
* DisplayController callbacks were sometimes being called too soon and providing stale window bounds, which led to the incorrect DeviceProfile being used. Switched to ComponentCallbacks on the window to get the most up-to-date callbacks. * Sadly, for navigation mode changes, ComponentCallbacks get fired too soon and have a stale navigation mode so we continue to rely on DisplayController for that change for now. Fixes: 219958843 Test: Tested folding/unfolding, no taskbar appears when it shouldn't. Tested with changing display/font size as well as nav mode changes Change-Id: I1b398934c0ea49f69bad19b13977b7b0906f3190