Skip to content

Commit

Permalink
feat: hideProfIlePhone
Browse files Browse the repository at this point in the history
Co-authored-by: =?UTF-8?q?=E2=80=ADhuajijam?= <[email protected]>
  • Loading branch information
omg-xtao and huajijam committed Aug 12, 2023
1 parent e21ce22 commit 85d6c5b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -9795,11 +9795,13 @@ public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
}
} 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);
Expand Down

0 comments on commit 85d6c5b

Please sign in to comment.