[Taskbar Performance] Avoid calling notifyUpdateLayoutParams in code logic specifically for unfolded taskbar when folded
Bug: 355968858 Test: https://android-build.corp.google.com/abtd/run/L59700030005634589/?referrer=email Flag: com.android.wm.shell.enable_taskbar_on_phones Change-Id: I27ee8aefa7dbb42028de4c2de617c0deac4452e8
This commit is contained in:
@@ -470,7 +470,8 @@ public class TaskbarLauncherStateController {
|
||||
// We're changing state to home, should close open popups e.g. Taskbar AllApps
|
||||
handleOpenFloatingViews = true;
|
||||
}
|
||||
if (mLauncherState == LauncherState.OVERVIEW) {
|
||||
if (mLauncherState == LauncherState.OVERVIEW
|
||||
&& !mControllers.taskbarActivityContext.isPhoneMode()) {
|
||||
// Calling to update the insets in TaskbarInsetController#updateInsetsTouchability
|
||||
mControllers.taskbarActivityContext.notifyUpdateLayoutParams();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user