[automerger] Add user event logging for clear all button (follow up CL) Bug: 72222505 am: cbebaa19f9

Change-Id: Ib388a78b853bcc37ddbfb99a375e7cfd99b0829f
diff --git a/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java b/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java
index 6381fef..7b7dbba 100644
--- a/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java
+++ b/quickstep/src/com/android/quickstep/views/RecentsViewContainer.java
@@ -33,12 +33,9 @@
 
     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 @@
 
         mClearAllButton = findViewById(R.id.clear_all_button);
         mClearAllButton.setOnClickListener((v) -> {
-            Launcher.getLauncher(mContext).getUserEventDispatcher()
+            mRecentsView.mActivity.getUserEventDispatcher()
                     .logActionOnControl(TAP, CLEAR_ALL_BUTTON);
             mRecentsView.dismissAllTasks();
         });