From cbebaa19f992bf55c1f4d6d57e3a21c71f5ee013 Mon Sep 17 00:00:00 2001 From: Hyunyoung Song Date: Fri, 27 Apr 2018 15:50:44 -0700 Subject: [PATCH] Add user event logging for clear all button (follow up CL) Bug: 72222505 Change-Id: I95e3bb8dbf55e9ae4ca8de4040eb89ddfb161368 --- .../com/android/quickstep/views/RecentsViewContainer.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java b/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java index 6381fef9df..7b7dbbaf58 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java +++ b/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java @@ -33,12 +33,9 @@ public class RecentsViewContainer extends InsettableFrameLayout { private RecentsView mRecentsView; private View mClearAllButton; - private final Context mContext; - public RecentsViewContainer(Context context, AttributeSet attrs) { super(context, attrs); - mContext = context; } @Override @@ -47,7 +44,7 @@ public class RecentsViewContainer extends InsettableFrameLayout { mClearAllButton = findViewById(R.id.clear_all_button); mClearAllButton.setOnClickListener((v) -> { - Launcher.getLauncher(mContext).getUserEventDispatcher() + mRecentsView.mActivity.getUserEventDispatcher() .logActionOnControl(TAP, CLEAR_ALL_BUTTON); mRecentsView.dismissAllTasks(); });