Merge "Add log to RemoteTargetGluer to determine which array is empty." into sc-v2-dev

This commit is contained in:
TreeHugger Robot
2021-10-19 20:06:57 +00:00
committed by Android (Google) Code Review

View File

@@ -94,6 +94,9 @@ public class RemoteTargetGluer {
public RemoteTargetHandle[] assignTargetsForSplitScreen(RemoteAnimationTargets targets) {
int[] splitIds = LauncherSplitScreenListener.INSTANCE.getNoCreate()
.getRunningSplitTaskIds();
Log.d(TAG, "splitIds length: " + splitIds.length
+ " targetAppsLength: " + targets.apps.length
+ " remoteHandlesLength: " + mRemoteTargetHandles.length);
if (splitIds.length == 0 && mRemoteTargetHandles.length > 1) {
// There's a chance that between the creation of this class and assigning targets,
// LauncherSplitScreenListener may have received callback that removes split