Fix sticker size preview
This commit is contained in:
parent
13be430274
commit
025b0d3db7
@ -4436,6 +4436,9 @@ public class ChatMessageCell extends BaseCell implements SeekBar.SeekBarDelegate
|
|||||||
} else {
|
} else {
|
||||||
photoImage.setImage(null, null, null, null, messageObject, 0);
|
photoImage.setImage(null, null, null, null, messageObject, 0);
|
||||||
}
|
}
|
||||||
|
if (messageObject.useCustomPhoto) {
|
||||||
|
photoImage.setImageBitmap(getResources().getDrawable(R.drawable.sticker));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
currentPhotoObject = FileLoader.getClosestPhotoSizeWithSize(messageObject.photoThumbs, AndroidUtilities.getPhotoSize());
|
currentPhotoObject = FileLoader.getClosestPhotoSizeWithSize(messageObject.photoThumbs, AndroidUtilities.getPhotoSize());
|
||||||
photoParentObject = messageObject.photoThumbsObject;
|
photoParentObject = messageObject.photoThumbsObject;
|
||||||
|
@ -76,6 +76,7 @@ public class StickerSizePreviewMessagesCell extends LinearLayout {
|
|||||||
message.to_id = new TLRPC.TL_peerUser();
|
message.to_id = new TLRPC.TL_peerUser();
|
||||||
message.to_id.user_id = 0;
|
message.to_id.user_id = 0;
|
||||||
messageObjects[0] = new MessageObject(UserConfig.selectedAccount, message, true);
|
messageObjects[0] = new MessageObject(UserConfig.selectedAccount, message, true);
|
||||||
|
messageObjects[0].useCustomPhoto = true;
|
||||||
|
|
||||||
message = new TLRPC.TL_message();
|
message = new TLRPC.TL_message();
|
||||||
message.message = LocaleController.getString("StickerSizeDialogMessageReplyTo", R.string.StickerSizeDialogMessageReplyTo);
|
message.message = LocaleController.getString("StickerSizeDialogMessageReplyTo", R.string.StickerSizeDialogMessageReplyTo);
|
||||||
@ -113,9 +114,6 @@ public class StickerSizePreviewMessagesCell extends LinearLayout {
|
|||||||
cells[a].isChat = false;
|
cells[a].isChat = false;
|
||||||
cells[a].setFullyDraw(true);
|
cells[a].setFullyDraw(true);
|
||||||
cells[a].setMessageObject(messageObjects[a], null, false, false);
|
cells[a].setMessageObject(messageObjects[a], null, false, false);
|
||||||
if (a == 0) {
|
|
||||||
cells[a].getPhotoImage().setImageBitmap(getResources().getDrawable(R.drawable.sticker));
|
|
||||||
}
|
|
||||||
addView(cells[a], LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, LayoutHelper.WRAP_CONTENT));
|
addView(cells[a], LayoutHelper.createLinear(LayoutHelper.MATCH_PARENT, LayoutHelper.WRAP_CONTENT));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user