Commit 3385ae38 authored by Shakti Sahu's avatar Shakti Sahu Committed by Commit Bot

Download Home : Hide chips when only one file type

Bug: 889357
Change-Id: Idda6b6556f06b6ce1e6e638adb4495036b11d6cb
Reviewed-on: https://chromium-review.googlesource.com/1252982Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Commit-Queue: Shakti Sahu <shaktisahu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595277}
parent f41e3e13
......@@ -126,8 +126,8 @@ public class FilterChipsProvider implements ChipsProvider, OfflineItemFilterObse
if (chip.enabled) visibleChips.add(chip);
}
// Remove the none chip if no other chip is visible.
if (visibleChips.size() == 1) {
// If there is only one chip type or only NONE chips, remove the entire row of chips.
if (visibleChips.size() <= 2) {
assert visibleChips.get(0).id == FilterType.NONE;
visibleChips.clear();
}
......
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