From 76e0c5bc4d429128d1e7840c80bd21c2f3e19c8d Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Mon, 2 Oct 2023 17:27:44 -0300 Subject: [PATCH] fix(hashtags): fix crash when hashtag is null --- .../joinmastodon/android/fragments/HashtagTimelineFragment.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/HashtagTimelineFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/HashtagTimelineFragment.java index 2c159fd1c..552822af1 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/HashtagTimelineFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/HashtagTimelineFragment.java @@ -285,8 +285,6 @@ public class HashtagTimelineFragment extends PinnableStatusListFragment{ followMenuItem=optionsMenu.findItem(R.id.follow_hashtag); pinMenuItem=optionsMenu.findItem(R.id.pin); 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); muteMenuItem = optionsMenu.findItem(R.id.mute_hashtag);