Limited recents in window introductory cl

Test: Built and tested locally

Flag: com.android.launcher3.enable_fallback_overview_in_window

Bug:292269949

Change-Id: I5352ba0b6c5bc196fbd1322d435a7e27e884f7b5
This commit is contained in:
randypfohl
2024-08-01 15:24:26 -07:00
parent f29dc7c5ec
commit c50aa8bf31
28 changed files with 1430 additions and 179 deletions
@@ -236,8 +236,6 @@ import com.android.wm.shell.common.pip.IPipAnimationListener;
import com.android.wm.shell.shared.desktopmode.DesktopModeStatus;
import com.android.wm.shell.shared.desktopmode.DesktopModeTransitionSource;
import kotlin.Unit;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@@ -251,6 +249,8 @@ import java.util.Set;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import kotlin.Unit;
/**
* A list of recent tasks.
*
@@ -258,7 +258,7 @@ import java.util.stream.Collectors;
* @param <STATE_TYPE> : the type of base state that will be used
*/
public abstract class RecentsView<
CONTAINER_TYPE extends Context & RecentsViewContainer,
CONTAINER_TYPE extends Context & RecentsViewContainer & StatefulContainer<STATE_TYPE>,
STATE_TYPE extends BaseState<STATE_TYPE>> extends PagedView implements Insettable,
TaskThumbnailCache.HighResLoadingState.HighResLoadingStateChangedCallback,
TaskVisualsChangeListener {
@@ -1209,6 +1209,7 @@ public abstract class RecentsView<
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
updateTaskStackListenerState();
mModel.getThumbnailCache().getHighResLoadingState().removeCallback(this);
mContainer.removeMultiWindowModeChangedListener(mMultiWindowModeChangedListener);