1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-22 11:02:35 +01:00

show radio pin for content filter again

This commit is contained in:
Christian Schabesberger 2018-07-18 15:05:49 +02:00
parent 14e0dcb085
commit 39e04de208

View File

@ -358,9 +358,17 @@ public class SearchFragment
supportActionBar.setDisplayHomeAsUpEnabled(true); supportActionBar.setDisplayHomeAsUpEnabled(true);
} }
int itemId = 0;
boolean isFirstItem = true;
for(String filter : service.getSearchQIHFactory().getAvailableContentFilter()) { for(String filter : service.getSearchQIHFactory().getAvailableContentFilter()) {
menu.add(filter); MenuItem item = menu.add(1, itemId++, 0, filter);
if(isFirstItem) {
item.setChecked(true);
isFirstItem = false;
} }
}
menu.setGroupCheckable(1, true, true);
restoreFilterChecked(menu, filterItemCheckedId); restoreFilterChecked(menu, filterItemCheckedId);
} }