Skip to content

Commit

Permalink
Merge pull request #538 from FineFindus/fix/hashtag-timeline-open-crash
Browse files Browse the repository at this point in the history
fix(Timeline/Hashtag): check if hashtag is null
  • Loading branch information
LucasGGamerM authored Sep 9, 2024
2 parents f30e12f + 08542cd commit d81eb6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ private void createOptionsMenu(){
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);

Expand Down

0 comments on commit d81eb6a

Please sign in to comment.