Skip to content

Commit

Permalink
fix: EditName button icon
Browse files Browse the repository at this point in the history
Co-authored-by: xtaodada <xtao@xtaolink.cn>
  • Loading branch information
Nep-Timeline and omg-xtao committed May 2, 2023
1 parent 0bedf39 commit 5f1f86f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -4512,7 +4512,7 @@ protected TextView createTextView() {
cameraDrawable = new RLottieDrawable(R.raw.camera_outline, String.valueOf(R.raw.camera_outline), AndroidUtilities.dp(56), AndroidUtilities.dp(56), false, null);
cellCameraDrawable = new RLottieDrawable(R.raw.camera_outline, R.raw.camera_outline + "_cell", AndroidUtilities.dp(42), AndroidUtilities.dp(42), false, null);

writeButton.setAnimation(cameraDrawable);
writeButton.setImageResource(R.drawable.msg_edit);
writeButton.setContentDescription(LocaleController.getString("AccDescrChangeProfilePicture", R.string.AccDescrChangeProfilePicture));
writeButton.setPadding(AndroidUtilities.dp(2), 0, 0, AndroidUtilities.dp(2));
} else {
Expand Down Expand Up @@ -9833,7 +9833,7 @@ public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
} else if (position == setAvatarRow) {
cellCameraDrawable.setCustomEndFrame(86);
cellCameraDrawable.setCurrentFrame(85, false);
textCell.setTextAndIcon(LocaleController.getString("SetProfilePhoto", R.string.SetProfilePhoto), cellCameraDrawable, false);
textCell.setTextAndIcon(LocaleController.getString("EditName", R.string.EditName), R.drawable.msg_edit, false);
textCell.setColors(Theme.key_windowBackgroundWhiteBlueIcon, Theme.key_windowBackgroundWhiteBlueButton);
textCell.getImageView().setPadding(0, 0, 0, AndroidUtilities.dp(8));
textCell.setImageLeft(12);
Expand Down

0 comments on commit 5f1f86f

Please sign in to comment.