Improve phone hidden

This commit is contained in:
NekoInverter 2020-03-10 12:05:35 +08:00
parent 2eb1ab178a
commit 6b09188daf
No known key found for this signature in database
GPG Key ID: 280D6CCCF95715F9
1 changed files with 4 additions and 0 deletions

View File

@ -263,6 +263,10 @@ public class DrawerProfileCell extends FrameLayout {
nameTextView.setText(UserObject.getUserName(user));
if (!NekoConfig.hidePhone) {
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.setColor(Theme.getColor(Theme.key_avatar_backgroundInProfileBlue));