Improve phone hidden
This commit is contained in:
parent
2eb1ab178a
commit
6b09188daf
@ -263,6 +263,10 @@ public class DrawerProfileCell extends FrameLayout {
|
|||||||
nameTextView.setText(UserObject.getUserName(user));
|
nameTextView.setText(UserObject.getUserName(user));
|
||||||
if (!NekoConfig.hidePhone) {
|
if (!NekoConfig.hidePhone) {
|
||||||
phoneTextView.setText(PhoneFormat.getInstance().format("+" + user.phone));
|
phoneTextView.setText(PhoneFormat.getInstance().format("+" + user.phone));
|
||||||
|
} else if (!TextUtils.isEmpty(user.username)) {
|
||||||
|
phoneTextView.setText("@" + user.username);
|
||||||
|
} else {
|
||||||
|
phoneTextView.setText(LocaleController.getString("MobileHidden",R.string.MobileHidden));
|
||||||
}
|
}
|
||||||
AvatarDrawable avatarDrawable = new AvatarDrawable(user);
|
AvatarDrawable avatarDrawable = new AvatarDrawable(user);
|
||||||
avatarDrawable.setColor(Theme.getColor(Theme.key_avatar_backgroundInProfileBlue));
|
avatarDrawable.setColor(Theme.getColor(Theme.key_avatar_backgroundInProfileBlue));
|
||||||
|
Loading…
Reference in New Issue
Block a user