This commit is contained in:
Riko Sakurauchi 2019-06-26 22:11:11 +08:00
parent 636548ff8b
commit 481e7d5cec
No known key found for this signature in database
GPG Key ID: 25AC0345B92902AF
2 changed files with 6 additions and 6 deletions

View File

@ -2747,8 +2747,8 @@ public class ProfileActivity extends BaseFragment implements NotificationCenter.
nameTextView[a].setRightDrawable(rightIcon);
}
if (photoBig != null) {
idTextView.setText("ID: " + user_id + ", DC: " + photoBig.dc_id);
if (user.photo != null) {
idTextView.setText("ID: " + user_id + ", DC: " + user.photo.dc_id);
} else {
idTextView.setText("ID: " + user_id);
}
@ -2864,8 +2864,8 @@ public class ProfileActivity extends BaseFragment implements NotificationCenter.
avatarImage.setImage(ImageLocation.getForChat(chat, false), "50_50", avatarDrawable, chat);
FileLoader.getInstance(currentAccount).loadFile(ImageLocation.getForChat(chat, true), chat, null, 0, 1);
avatarImage.getImageReceiver().setVisible(!PhotoViewer.isShowingImage(photoBig), false);
if (photoBig != null) {
idTextView.setText("ID: " + chat_id + ", DC: " + photoBig.dc_id);
if (chat.photo != null) {
idTextView.setText("ID: " + chat_id + ", DC: " + chat.photo.dc_id);
} else {
idTextView.setText("ID: " + chat_id);
}

View File

@ -1008,8 +1008,8 @@ public class SettingsActivity extends BaseFragment implements NotificationCenter
avatarImage.getImageReceiver().setVisible(!PhotoViewer.isShowingImage(photoBig), false);
}
if (photoBig != null) {
idTextView.setText("ID: " + user.id + ", DC: " + photoBig.dc_id);
if (user.photo != null) {
idTextView.setText("ID: " + user.id + ", DC: " + user.photo.dc_id);
} else {
idTextView.setText("ID: " + user.id);
}