Merge "Close task menu scrim when pressing home button" into sc-v2-dev am: 2280f3d5fc

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16365179

Change-Id: I8620705d35fed5313032606d3df095a13110da6a
This commit is contained in:
TreeHugger Robot
2021-11-30 19:22:52 +00:00
committed by Automerger Merge Worker
2 changed files with 4 additions and 0 deletions
@@ -31,6 +31,7 @@ import android.view.MotionEvent;
import androidx.annotation.Nullable;
import com.android.launcher3.AbstractFloatingView;
import com.android.launcher3.anim.AnimatorPlaybackController;
import com.android.launcher3.anim.PendingAnimation;
import com.android.launcher3.statemanager.StateManager.StateListener;
@@ -73,6 +74,7 @@ public class FallbackRecentsView extends RecentsView<RecentsActivity, RecentsSta
@Override
public void startHome() {
mActivity.startHome();
AbstractFloatingView.closeAllOpenViews(mActivity, mActivity.isStarted());
}
/**
@@ -32,6 +32,7 @@ import android.view.Surface;
import androidx.annotation.Nullable;
import com.android.launcher3.AbstractFloatingView;
import com.android.launcher3.BaseQuickstepLauncher;
import com.android.launcher3.LauncherState;
import com.android.launcher3.statehandlers.DepthController;
@@ -70,6 +71,7 @@ public class LauncherRecentsView extends RecentsView<BaseQuickstepLauncher, Laun
@Override
public void startHome() {
mActivity.getStateManager().goToState(NORMAL);
AbstractFloatingView.closeAllOpenViews(mActivity, mActivity.isStarted());
}
@Override