From edd4f89f4d11955d2a5109138b4b5ee19f83e053 Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Fri, 1 Jun 2018 11:23:33 -0700 Subject: [PATCH] Skip shelf adjustment for PIP when quickscrubbing Change-Id: I6dbf63dfda608601baa257125db5ec69af9f30ee Fixes: 80316126 Test: Manual test --- .../src/com/android/launcher3/uioverrides/UiFactory.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/quickstep/src/com/android/launcher3/uioverrides/UiFactory.java b/quickstep/src/com/android/launcher3/uioverrides/UiFactory.java index dd5dcbeaf8..ac9f8634ee 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/UiFactory.java +++ b/quickstep/src/com/android/launcher3/uioverrides/UiFactory.java @@ -25,7 +25,6 @@ import static com.android.launcher3.LauncherState.NORMAL; import static com.android.launcher3.LauncherState.OVERVIEW; import static com.android.launcher3.allapps.DiscoveryBounce.HOME_BOUNCE_SEEN; import static com.android.launcher3.allapps.DiscoveryBounce.SHELF_BOUNCE_SEEN; -import static com.android.systemui.shared.system.RemoteAnimationTargetCompat.MODE_CLOSING; import android.animation.AnimatorSet; import android.animation.ValueAnimator; @@ -46,7 +45,6 @@ import com.android.launcher3.anim.AnimatorPlaybackController; import com.android.launcher3.util.TouchController; import com.android.quickstep.OverviewInteractionState; import com.android.quickstep.RecentsModel; -import com.android.quickstep.util.RemoteAnimationTargetSet; import com.android.quickstep.util.RemoteFadeOutAnimationListener; import com.android.quickstep.views.RecentsView; import com.android.systemui.shared.system.ActivityCompat; @@ -171,7 +169,8 @@ public class UiFactory { LauncherState state = launcher.getStateManager().getState(); DeviceProfile profile = launcher.getDeviceProfile(); WindowManagerWrapper.getInstance().setShelfHeight( - state != ALL_APPS && launcher.isUserActive() && !profile.isVerticalBarLayout(), + (state == NORMAL || state == OVERVIEW) && launcher.isUserActive() + && !profile.isVerticalBarLayout(), profile.hotseatBarSizePx); if (state == NORMAL) {