From b2c73b43a1cc63d329afa4acdfe4b0197e5b3483 Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 29 Mar 2019 16:37:08 -0700 Subject: [PATCH] Fix crash on fallback recents Go activity Recents Go would crash when attempting to touch the fallback recents activity since it's based off the base dragging activity in launcher which assumes some touch controllers are initialized. As we leave all touch input to hooks on the views themselves, we do not need touch controllers and initialize an empty list instead. Bug: 114136250 Test: Launch fallback recents activity, touch around Change-Id: Ic136ace6f968d8c469c6f300daf4ee28fbde5e69 --- .../android/quickstep/fallback/GoRecentsActivityRootView.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go/quickstep/src/com/android/quickstep/fallback/GoRecentsActivityRootView.java b/go/quickstep/src/com/android/quickstep/fallback/GoRecentsActivityRootView.java index d748e89e91..c0ebcb5a43 100644 --- a/go/quickstep/src/com/android/quickstep/fallback/GoRecentsActivityRootView.java +++ b/go/quickstep/src/com/android/quickstep/fallback/GoRecentsActivityRootView.java @@ -18,6 +18,7 @@ package com.android.quickstep.fallback; import android.content.Context; import android.util.AttributeSet; +import com.android.launcher3.util.TouchController; import com.android.launcher3.views.BaseDragLayer; import com.android.quickstep.RecentsActivity; @@ -27,5 +28,7 @@ import com.android.quickstep.RecentsActivity; public final class GoRecentsActivityRootView extends BaseDragLayer { public GoRecentsActivityRootView(Context context, AttributeSet attrs) { super(context, attrs, 1 /* alphaChannelCount */); + // Go leaves touch control to the view itself. + mControllers = new TouchController[0]; } }