feat: hideProfIlePhone
Co-authored-by: =?UTF-8?q?=E2=80=ADhuajijam?= <strhuaji@gmail.com>
This commit is contained in:
parent
06cb8af78b
commit
fa1a26579c
@ -9795,11 +9795,13 @@ public class ProfileActivity extends BaseFragment implements NotificationCenter.
|
||||
}
|
||||
} else if (position == numberRow) {
|
||||
TLRPC.User user = UserConfig.getInstance(currentAccount).getCurrentUser();
|
||||
String value;
|
||||
if (user != null && user.phone != null && user.phone.length() != 0) {
|
||||
value = PhoneFormat.getInstance().format("+" + user.phone);
|
||||
} else {
|
||||
value = LocaleController.getString("NumberUnknown", R.string.NumberUnknown);
|
||||
String value = LocaleController.getString("NumberUnknown", R.string.NumberUnknown);
|
||||
if (!NekoConfig.hidePhone.Bool()) {
|
||||
if (user != null && user.phone != null && user.phone.length() != 0) {
|
||||
value = PhoneFormat.getInstance().format("+" + user.phone);
|
||||
}
|
||||
} else if (!TextUtils.isEmpty(user.username)) {
|
||||
value = "@" + user.username;
|
||||
}
|
||||
detailCell.setTextAndValue(value, LocaleController.getString("TapToChangePhone", R.string.TapToChangePhone), true);
|
||||
detailCell.setContentDescriptionValueFirst(false);
|
||||
|
Loading…
Reference in New Issue
Block a user