diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index b077ca6741..935305a5c6 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -42,6 +42,7 @@ import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCH import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_TASK_DISMISS_SWIPE_UP; import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_TASK_LAUNCH_SWIPE_DOWN; import static com.android.launcher3.statehandlers.DepthController.DEPTH; +import static com.android.launcher3.testing.TestProtocol.TASK_VIEW_ID_CRASH; import static com.android.launcher3.touch.PagedOrientationHandler.CANVAS_TRANSLATE; import static com.android.launcher3.util.Executors.MAIN_EXECUTOR; import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR; @@ -82,6 +83,7 @@ import android.text.StaticLayout; import android.text.TextPaint; import android.util.AttributeSet; import android.util.FloatProperty; +import android.util.Log; import android.util.SparseBooleanArray; import android.view.HapticFeedbackConstants; import android.view.KeyEvent; @@ -1222,6 +1224,9 @@ public abstract class RecentsView= 0; i--) { @@ -1246,6 +1251,18 @@ public abstract class RecentsView= 0; i--) { + final int pageIndex = requiredTaskCount - i - 1 + mTaskViewStartIndex; + final TaskView taskView = (TaskView) getChildAt(pageIndex); + int taskViewId = taskView.getTaskViewId(); + sb.append(" taskViewId: " + taskViewId + + " taskId: " + getTaskIdsForTaskViewId(taskViewId)[0] + + " for taskView: " + taskView + "\n"); + } + Log.d(TASK_VIEW_ID_CRASH, sb.toString()); + } mRunningTaskViewId = newRunningTaskView.getTaskViewId(); } diff --git a/src/com/android/launcher3/testing/TestProtocol.java b/src/com/android/launcher3/testing/TestProtocol.java index 686dfde88a..38cbbe7b6b 100644 --- a/src/com/android/launcher3/testing/TestProtocol.java +++ b/src/com/android/launcher3/testing/TestProtocol.java @@ -119,4 +119,5 @@ public final class TestProtocol { public static final String FALLBACK_ACTIVITY_NO_SET = "b/181019015"; public static final String THIRD_PARTY_LAUNCHER_NOT_SET = "b/187080582"; public static final String MOTION_PAUSE_TIMEOUT = "b/194114179"; + public static final String TASK_VIEW_ID_CRASH = "b/195430732"; }