fix menu item icons and state

This commit is contained in:
sk 2023-09-29 21:45:41 +02:00
parent 4ee229ea79
commit f2f8620312
1 changed files with 2 additions and 1 deletions

View File

@ -220,6 +220,7 @@ public class HashtagTimelineFragment extends PinnableStatusListFragment{
followMenuItem.setTitle(getString(hashtag.following ? R.string.unfollow_user : R.string.follow_user, "#"+hashtagName));
followMenuItem.setIcon(hashtag.following ? R.drawable.ic_fluent_person_delete_24_filled : R.drawable.ic_fluent_person_add_24_regular);
pinMenuItem.setShowAsAction(toolbarContentVisible ? MenuItem.SHOW_AS_ACTION_NEVER : MenuItem.SHOW_AS_ACTION_ALWAYS);
super.updatePinButton(pinMenuItem);
if(toolbarContentVisible){
UiUtils.enableOptionsMenuIcons(getContext(), optionsMenu);
}else{
@ -230,7 +231,7 @@ public class HashtagTimelineFragment extends PinnableStatusListFragment{
@Override
public void updatePinButton(MenuItem pin){
super.updatePinButton(pin);
UiUtils.insetPopupMenuIcon(getContext(), pin);
if(toolbarContentVisible) UiUtils.insetPopupMenuIcon(getContext(), pin);
}
@Override