Add support for taskbar phone 3 button seascape

* Ignore orientation check from ag/22709055 for now,
that will be reverted. This causes recreateTaskbar() to
not run when folding the device

Bug: 274517647
Test: Tested 3 button nav in portrait/landscape/seascape
Flag: persist.wm.debug.hide_navbar_window
Change-Id: Ied02ead677d496b465c748257e32b7db5eb9580c
This commit is contained in:
Vinit Nayak committed 2023-07-06 13:58:30 -07:00
1 parent 1e3d799fe3
commit 15a9feb67f
13 files changed
+298 -107

No files matched your search

@@ -206,7 +206,14 @@ public class TaskbarManager {
destroyExistingTaskbar();
} else {
if (dp != null && isTaskbarPresent(dp)) {
mTaskbarActivityContext.updateDeviceProfile(dp);
if (FLAG_HIDE_NAVBAR_WINDOW) {
// Re-initialize for screen size change? Should this be done
// by looking at screen-size change flag in configDiff in the
// block above?
recreateTaskbar();
} else {
mTaskbarActivityContext.updateDeviceProfile(dp);
}
}
mTaskbarActivityContext.onConfigurationChanged(configDiff);
}