More polishes the UI side a little more, now also hides the private note on the personal profile

This commit is contained in:
LucasGGamerM 2022-12-27 18:26:35 -03:00
parent 9bddd6b274
commit 3104ddb4b6
2 changed files with 49 additions and 1 deletions

View File

@ -117,7 +117,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
private CoverOverlayGradientDrawable coverGradient=new CoverOverlayGradientDrawable();
private float titleTransY;
private View postsBtn, followersBtn, followingBtn;
private EditText nameEdit, bioEdit;
private EditText nameEdit, bioEdit, noteEdit;
private ProgressBar actionProgress, notifyProgress;
private FrameLayout[] tabViews;
private TabLayoutMediator tabLayoutMediator;
@ -180,6 +180,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
name=content.findViewById(R.id.name);
username=content.findViewById(R.id.username);
bio=content.findViewById(R.id.bio);
noteEdit=content.findViewById(R.id.note_edit);
followersCount=content.findViewById(R.id.followers_count);
followersLabel=content.findViewById(R.id.followers_label);
followersBtn=content.findViewById(R.id.followers_btn);
@ -444,6 +445,52 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
name.setText(ssb);
setTitle(ssb);
if(isOwnProfile){
noteEdit.setVisibility(View.GONE);
}
boolean isSelf=AccountSessionManager.getInstance().isSelf(accountID, account);
if(account.locked){

View File

@ -294,6 +294,7 @@
android:layout_marginLeft="16dp"
android:layout_marginTop="8dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="4dp"
android:textAppearance="@style/m3_body_large"
android:textSize="16sp"
android:background="@drawable/edit_text_border"