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

This commit is contained in:
TreeHugger Robot 2018-04-13 17:48:47 +00:00 committed by Android (Google) Code Review
commit 8fa358a6ba
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}