Merge "Close out of recents when clicking it if it's empty" into ub-launcher3-master

This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2018-04-13 17:48:47 +00:00
commit 8fa358a6ba
1 file changed
+3
@@ -323,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;
}