Skip to content

Commit

Permalink
fix(ProfileFragment): hide lock/bot icons on enter edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasGGamerM committed Sep 22, 2023
1 parent 885b3e3 commit d7ab019
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -261,6 +261,7 @@ public View onCreateContentView(LayoutInflater inflater, ViewGroup container, Bu
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);
Expand Down Expand Up @@ -1191,7 +1192,7 @@ private void enterEditMode(Account account){

name.setVisibility(View.GONE);
rolesView.setVisibility(View.GONE);
username.setVisibility(View.GONE);
usernameWrap.setVisibility(View.GONE);
bio.setVisibility(View.GONE);
countersLayout.setVisibility(View.GONE);

Expand Down Expand Up @@ -1240,7 +1241,7 @@ private void exitEditMode(){
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);
Expand Down

0 comments on commit d7ab019

Please sign in to comment.