mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Merge "Add logs to RemoteTargetGluer for index exception" into udc-dev am: 8492177884
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23711381 Change-Id: Ie3a59d1d23e95685f8a1f480aa25af5c07500655 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -19,6 +19,7 @@ package com.android.quickstep;
|
||||
import android.app.WindowConfiguration;
|
||||
import android.content.Context;
|
||||
import android.graphics.Rect;
|
||||
import android.util.Log;
|
||||
import android.view.RemoteAnimationTarget;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
@@ -37,6 +38,8 @@ import java.util.Arrays;
|
||||
* {@link TaskViewSimulator}
|
||||
*/
|
||||
public class RemoteTargetGluer {
|
||||
private static final String TAG = "RemoteTargetGluer";
|
||||
|
||||
private static final int DEFAULT_NUM_HANDLES = 2;
|
||||
|
||||
private RemoteTargetHandle[] mRemoteTargetHandles;
|
||||
@@ -118,7 +121,9 @@ public class RemoteTargetGluer {
|
||||
long appCount = Arrays.stream(targets.apps)
|
||||
.filter(app -> app.mode == targets.targetMode)
|
||||
.count();
|
||||
Log.d(TAG, "appCount: " + appCount + " handleLength: " + mRemoteTargetHandles.length);
|
||||
if (appCount < mRemoteTargetHandles.length) {
|
||||
Log.d(TAG, "resizing handles");
|
||||
RemoteTargetHandle[] newHandles = new RemoteTargetHandle[(int) appCount];
|
||||
System.arraycopy(mRemoteTargetHandles, 0/*src*/, newHandles, 0/*dst*/, (int) appCount);
|
||||
mRemoteTargetHandles = newHandles;
|
||||
@@ -128,6 +133,8 @@ public class RemoteTargetGluer {
|
||||
.anyMatch(remoteAnimationTarget ->
|
||||
remoteAnimationTarget.windowConfiguration.getWindowingMode()
|
||||
== WindowConfiguration.WINDOWING_MODE_MULTI_WINDOW);
|
||||
Log.d(TAG, "containsSplitTargets? " + containsSplitTargets + " handleLength: " +
|
||||
mRemoteTargetHandles.length + " appsLength: " + targets.apps.length);
|
||||
|
||||
if (mRemoteTargetHandles.length == 1) {
|
||||
// Single fullscreen app
|
||||
|
||||
Reference in New Issue
Block a user