From 3ee9f57eb6900bda3a17c1632075a34252b3dc9f Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Fri, 13 Apr 2018 10:33:31 -0700 Subject: [PATCH] Close out of recents when clicking it if it's empty Bug: 77977813 Change-Id: Iadc95e47c68ed54b6f98bb053a543c0b240117c2 --- quickstep/src/com/android/quickstep/views/RecentsView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index d214b13f43..dfaa94b2f8 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -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 @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; }