Merge pull request #538 from FineFindus/fix/hashtag-timeline-open-crash

fix(Timeline/Hashtag): check if hashtag is null
This commit is contained in:
LucasGGamerM
2024-09-09 09:03:54 -03:00
committed by GitHub

View File

@@ -295,7 +295,7 @@ public class HashtagTimelineFragment extends PinnableStatusListFragment{
followMenuItem=optionsMenu.findItem(R.id.follow_hashtag);
pinMenuItem=optionsMenu.findItem(R.id.pin);
followMenuItem.setVisible(toolbarContentVisible);
updateFollowState(hashtag.following);
updateFollowState(hashtag!=null && hashtag.following);
// pinMenuItem.setShowAsAction(toolbarContentVisible ? MenuItem.SHOW_AS_ACTION_NEVER : MenuItem.SHOW_AS_ACTION_ALWAYS);
super.updatePinButton(pinMenuItem);