mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Add user event logging for clear all button (follow up CL)
Bug: 72222505 Change-Id: I95e3bb8dbf55e9ae4ca8de4040eb89ddfb161368
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user