1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2026-04-23 07:11:23 +00:00

-Added icon for bookmark pager.

This commit is contained in:
John Zhen Mo
2018-01-22 14:21:00 -08:00
parent a74c4168f3
commit 81f481833c
13 changed files with 6 additions and 2 deletions

View File

@@ -85,14 +85,15 @@ public class MainFragment extends BaseFragment implements TabLayout.OnTabSelecte
int channelIcon = ThemeHelper.resolveResourceIdFromAttr(activity, R.attr.ic_channel);
int whatsHotIcon = ThemeHelper.resolveResourceIdFromAttr(activity, R.attr.ic_hot);
int bookmarkIcon = ThemeHelper.resolveResourceIdFromAttr(activity, R.attr.ic_bookmark);
if (isSubscriptionsPageOnlySelected()) {
tabLayout.getTabAt(0).setIcon(channelIcon);
tabLayout.getTabAt(1).setText(R.string.tab_bookmarks);
tabLayout.getTabAt(1).setIcon(bookmarkIcon);
} else {
tabLayout.getTabAt(0).setIcon(whatsHotIcon);
tabLayout.getTabAt(1).setIcon(channelIcon);
tabLayout.getTabAt(2).setText(R.string.tab_bookmarks);
tabLayout.getTabAt(2).setIcon(bookmarkIcon);
}
}