Commit 19ab2ed8 authored by Anna Malova's avatar Anna Malova Committed by Commit Bot

Handle backpress in the download manager

Bug: 859125
Change-Id: Ib8e85897d5059ec421ed9ddc63921a6005b37c9d
Reviewed-on: https://chromium-review.googlesource.com/1133175Reviewed-by: default avatarTheresa <twellington@chromium.org>
Reviewed-by: default avatarPeter Conn <peconn@chromium.org>
Commit-Queue: Anna Malova <amalova@chromium.org>
Cr-Commit-Position: refs/heads/master@{#574203}
parent 3345842e
......@@ -327,11 +327,7 @@ public class DownloadManagerUi implements OnMenuItemClickListener, SearchDelegat
*/
@Override
public boolean onBackPressed() {
if (mBackendProvider.getSelectionDelegate().isSelectionEnabled()) {
mBackendProvider.getSelectionDelegate().clearSelection();
return true;
}
return false;
return mSelectableListLayout.onBackPressed();
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment