From d7ab01910796a60fa9d8929fc1e25793603aa147 Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Fri, 22 Sep 2023 10:13:36 -0300 Subject: [PATCH] fix(ProfileFragment): hide lock/bot icons on enter edit mode --- .../joinmastodon/android/fragments/ProfileFragment.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 66adff199..174b751f8 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java @@ -155,7 +155,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList private TextView followsYouView; private ViewGroup rolesView; private LinearLayout countersLayout; - private View nameEditWrap, bioEditWrap; + private View nameEditWrap, bioEditWrap, usernameWrap; private View tabsDivider; private View actionButtonWrap; private CustomDrawingOrderLinearLayout scrollableContent; @@ -261,6 +261,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList bioEdit=content.findViewById(R.id.bio_edit); nameEditWrap=content.findViewById(R.id.name_edit_wrap); bioEditWrap=content.findViewById(R.id.bio_edit_wrap); + usernameWrap=content.findViewById(R.id.username_wrap); actionProgress=content.findViewById(R.id.action_progress); notifyProgress=content.findViewById(R.id.notify_progress); fab=content.findViewById(R.id.fab); @@ -1191,7 +1192,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList name.setVisibility(View.GONE); rolesView.setVisibility(View.GONE); - username.setVisibility(View.GONE); + usernameWrap.setVisibility(View.GONE); bio.setVisibility(View.GONE); countersLayout.setVisibility(View.GONE); @@ -1240,7 +1241,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList bioEditWrap.setVisibility(View.GONE); name.setVisibility(View.VISIBLE); rolesView.setVisibility(View.VISIBLE); - username.setVisibility(View.VISIBLE); + usernameWrap.setVisibility(View.VISIBLE); bio.setVisibility(View.VISIBLE); countersLayout.setVisibility(View.VISIBLE); refreshLayout.setEnabled(true);