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 8ec7bc555..bff4f02ea 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java @@ -106,6 +106,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList private ImageView avatar; private CoverImageView cover; private View avatarBorder; + private Button botIcon; private TextView name, username, bio, followersCount, followersLabel, followingCount, followingLabel, postsCount, postsLabel; private ProgressBarButton actionButton, notifyButton; private ViewPager2 pager; @@ -191,6 +192,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList followingCount=content.findViewById(R.id.following_count); followingLabel=content.findViewById(R.id.following_label); followingBtn=content.findViewById(R.id.following_btn); + postsCount=content.findViewById(R.id.posts_count); postsLabel=content.findViewById(R.id.posts_label); postsBtn=content.findViewById(R.id.posts_btn); @@ -555,7 +557,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList if(relationship==null && !isOwnProfile) return; inflater.inflate(isOwnProfile ? R.menu.profile_own : R.menu.profile, menu); - UiUtils.enableOptionsMenuIcons(getActivity(), menu, R.id.bookmarks, R.id.followed_hashtags); + UiUtils.enableOptionsMenuIcons(getActivity(), menu, R.id.bookmarks, R.id.followed_hashtags, R.id.favorite, R.id.scheduled, R.id.share); menu.findItem(R.id.share).setTitle(getString(R.string.share_user, account.getShortUsername())); if(isOwnProfile) return; diff --git a/mastodon/src/main/res/layout/fragment_profile.xml b/mastodon/src/main/res/layout/fragment_profile.xml index 8a725ca49..22636c12c 100644 --- a/mastodon/src/main/res/layout/fragment_profile.xml +++ b/mastodon/src/main/res/layout/fragment_profile.xml @@ -176,18 +176,16 @@ - + android:drawableStart="@drawable/ic_fluent_alert_24_selector" /> - - - - - -