Commit 3d3b764b authored by Shakti Sahu's avatar Shakti Sahu Committed by Commit Bot

Download Home : Back press doesn't update contents

Fixed an issue where the filter change callback was not getting propagated
correctly to the mutator, due to which the back button press was unable
to update the contents of the tab.

Bug: 899936
Change-Id: I46f83fd651a453aba875c62ef47da9d8ee8b2067
Reviewed-on: https://chromium-review.googlesource.com/c/1309427Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Commit-Queue: Shakti Sahu <shaktisahu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604841}
parent 0146a81c
......@@ -77,13 +77,17 @@ public class FilterCoordinator {
* components might need to update the UI state.
*/
public void setSelectedFilter(@FilterType int filter) {
@TabType
int tabSelected;
if (filter == Filters.FilterType.PREFETCHED
&& PrefetchConfiguration.isPrefetchingFlagEnabled()) {
selectTab(TabType.PREFETCH);
tabSelected = TabType.PREFETCH;
} else {
mChipsProvider.setFilterSelected(filter);
selectTab(TabType.FILES);
tabSelected = TabType.FILES;
}
handleTabSelected(tabSelected);
}
private void selectTab(@TabType int selectedTab) {
......
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