Do not synchronizeNextDraw in phone mode

Bug: 355973871
Test: Needs to verify with perfetto traces
Flag: com.android.wm.shell.enable_taskbar_on_phones
Change-Id: I84c258020951274915792d75d67c263135bbf2a9
This commit is contained in:
Tracy Zhou
2024-07-29 10:13:48 -07:00
parent 453734f09e
commit 2003bc8dd8
2 changed files with 5 additions and 5 deletions
@@ -250,7 +250,7 @@ public class TaskbarLauncherStateController {
applyState(0);
mCanSyncViews = true;
mCanSyncViews = !mControllers.taskbarActivityContext.isPhoneMode();
mLauncher.addOnDeviceProfileChangeListener(mOnDeviceProfileChangeListener);
updateOverviewDragState(mLauncherState);
}
@@ -263,7 +263,7 @@ public class TaskbarLauncherStateController {
mLauncher.getHotseat().setIconsAlpha(1f);
mLauncher.getStateManager().removeStateListener(mStateListener);
mCanSyncViews = true;
mCanSyncViews = !mControllers.taskbarActivityContext.isPhoneMode();
mLauncher.removeOnDeviceProfileChangeListener(mOnDeviceProfileChangeListener);
}
@@ -743,8 +743,7 @@ public class TaskbarLauncherStateController {
if (firstFrameVisChanged && mCanSyncViews && !Utilities.isRunningInTestHarness()) {
ViewRootSync.synchronizeNextDraw(mLauncher.getHotseat(),
mControllers.taskbarActivityContext.getDragLayer(),
() -> {
});
() -> {});
}
}