Merge "Fix home animation jank when quickly pressing home button" into udc-qpr-dev

This commit is contained in:
Schneider Victor-tulias
2023-07-25 21:01:47 +00:00
committed by Android (Google) Code Review
+2 -1
View File
@@ -1663,7 +1663,8 @@ public class Launcher extends StatefulActivity<LauncherState>
if (isActionMain) {
if (!internalStateHandled) {
// In all these cases, only animate if we're already on home
closeOpenViews(isStarted());
AbstractFloatingView.closeAllOpenViewsExcept(
this, isStarted(), AbstractFloatingView.TYPE_LISTENER);
if (!isInState(NORMAL)) {
// Only change state, if not already the same. This prevents cancelling any