fix(hashtags): fix crash when hashtag is null

This commit is contained in:
LucasGGamerM 2023-10-02 17:27:44 -03:00
parent 084bbc18cf
commit 76e0c5bc4d
1 changed files with 0 additions and 2 deletions

View File

@ -285,8 +285,6 @@ public class HashtagTimelineFragment extends PinnableStatusListFragment{
followMenuItem=optionsMenu.findItem(R.id.follow_hashtag); followMenuItem=optionsMenu.findItem(R.id.follow_hashtag);
pinMenuItem=optionsMenu.findItem(R.id.pin); pinMenuItem=optionsMenu.findItem(R.id.pin);
followMenuItem.setVisible(toolbarContentVisible); followMenuItem.setVisible(toolbarContentVisible);
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);
super.updatePinButton(pinMenuItem); super.updatePinButton(pinMenuItem);
muteMenuItem = optionsMenu.findItem(R.id.mute_hashtag); muteMenuItem = optionsMenu.findItem(R.id.mute_hashtag);