Merge "Dismisses system overlays for Home intent." into ub-launcher3-master

This commit is contained in:
TreeHugger Robot
2020-03-09 22:00:20 +00:00
committed by Android (Google) Code Review
2 changed files with 19 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ import static com.android.launcher3.allapps.DiscoveryBounce.HOME_BOUNCE_SEEN;
import static com.android.launcher3.allapps.DiscoveryBounce.SHELF_BOUNCE_COUNT;
import static com.android.launcher3.allapps.DiscoveryBounce.SHELF_BOUNCE_SEEN;
import static com.android.quickstep.SysUINavigationMode.removeShelfFromOverview;
import static com.android.systemui.shared.system.ActivityManagerWrapper.CLOSE_SYSTEM_WINDOWS_REASON_HOME_KEY;
import android.animation.AnimatorSet;
import android.animation.ValueAnimator;
@@ -229,6 +230,13 @@ public abstract class BaseQuickstepLauncher extends Launcher
}
}
@Override
protected void closeOpenViews(boolean animate) {
super.closeOpenViews(animate);
ActivityManagerWrapper.getInstance()
.closeSystemWindows(CLOSE_SYSTEM_WINDOWS_REASON_HOME_KEY);
}
@Override
protected StateHandler[] createStateHandlers() {
return new StateHandler[] {