Hide smart actions if we enter split select from home

Test: Enter split selection from workspace/all apps,
with 1, 0, or more apps in overview
Fixes: 269363674

Change-Id: I8eba01960dd7e3c2683fe8f1d21e81de3b8245a2
This commit is contained in:
Vinit Nayak
2023-02-14 17:33:48 -08:00
parent a75105ef03
commit 3287c1d8f9

View File

@@ -1624,10 +1624,13 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
// If we are entering Overview as a result of initiating a split from somewhere else
// (e.g. split from Home), we need to make sure the staged app is not drawn as a thumbnail.
int stagedTaskIdToBeRemovedFromGrid = mSplitSelectSource != null
? mSplitSelectSource.alreadyRunningTaskId
: INVALID_TASK_ID;
int stagedTaskIdToBeRemovedFromGrid;
if (mSplitSelectSource != null) {
stagedTaskIdToBeRemovedFromGrid = mSplitSelectSource.alreadyRunningTaskId;
updateCurrentTaskActionsVisibility();
} else {
stagedTaskIdToBeRemovedFromGrid = INVALID_TASK_ID;
}
// update the map of instance counts
mFilterState.updateInstanceCountMap(taskGroups);