Adds instance name after some usernames
This commit is contained in:
parent
47062a4bff
commit
e09dbbe307
|
@ -511,7 +511,7 @@ public class ShowAccountActivity extends AppCompatActivity implements OnPostActi
|
|||
}
|
||||
if( account != null){
|
||||
account_dn.setText(Helper.shortnameToUnicode(account.getDisplay_name(), true));
|
||||
account_un.setText(String.format("@%s", account.getUsername()));
|
||||
account_un.setText(String.format("@%s", account.getAcct()));
|
||||
SpannableString spannableString = Helper.clickableElementsDescription(ShowAccountActivity.this, account.getNote());
|
||||
account_note.setText(spannableString, TextView.BufferType.SPANNABLE);
|
||||
account_note.setMovementMethod(LinkMovementMethod.getInstance());
|
||||
|
|
|
@ -1021,7 +1021,7 @@ public class Helper {
|
|||
activity.startActivity(myIntent);
|
||||
activity.finish(); //User is logged out to get a new token
|
||||
}else {
|
||||
username.setText(String.format("@%s",account.getUsername()));
|
||||
username.setText(String.format("@%s",account.getUsername() + "@" + account.getInstance()));
|
||||
displayedName.setText(account.getDisplay_name());
|
||||
String url = account.getAvatar();
|
||||
if( url.startsWith("/") ){
|
||||
|
|
|
@ -66,8 +66,8 @@
|
|||
tools:ignore="UseCompoundDrawables">
|
||||
<TextView
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginStart="20dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:id="@+id/displayedName"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
|
@ -85,11 +85,12 @@
|
|||
tools:ignore="ContentDescription" />
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginStart="20dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:id="@+id/username"
|
||||
android:layout_width="wrap_content"
|
||||
android:textSize="14sp"
|
||||
android:textSize="12sp"
|
||||
android:maxLines="1"
|
||||
android:layout_height="wrap_content"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
|
Loading…
Reference in New Issue