Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ee9f57e authored by Tony Wickham's avatar Tony Wickham
Browse files

Close out of recents when clicking it if it's empty

Bug: 77977813
Change-Id: Iadc95e47c68ed54b6f98bb053a543c0b240117c2
parent 2998e432
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -79,7 +79,6 @@ import com.android.systemui.shared.system.ActivityManagerWrapper;
import com.android.systemui.shared.system.TaskStackChangeListener;

import java.util.ArrayList;
import java.util.function.Consumer;

/**
 * A list of recent tasks.
@@ -324,6 +323,9 @@ public abstract class RecentsView<T extends BaseActivity>
    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        super.onTouchEvent(ev);
        if (ev.getAction() == MotionEvent.ACTION_UP && mShowEmptyMessage) {
            onAllTasksRemoved();
        }
        // Do not let touch escape to siblings below this view.
        return true;
    }