fix(hashtags): fix crash when hashtag is null
This commit is contained in:
parent
084bbc18cf
commit
76e0c5bc4d
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue