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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user