From 68d086200803d91348586f54407b9f45af5bda0a Mon Sep 17 00:00:00 2001 From: Grishka Date: Fri, 13 May 2022 20:54:22 +0300 Subject: [PATCH] Close #122 --- .../joinmastodon/android/fragments/ProfileFragment.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java index 4f0907e31..724396c61 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java @@ -509,10 +509,17 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList item.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS); return; } - if(relationship==null) + if(relationship==null && !isOwnProfile) return; inflater.inflate(R.menu.profile, menu); menu.findItem(R.id.share).setTitle(getString(R.string.share_user, account.getDisplayUsername())); + if(isOwnProfile){ + for(int i=0;i