Skip to content

Commit 1cc2ecd

Browse files
authored
fix: copy photo in ContentPreviewViewer
1 parent 439b2bc commit 1cc2ecd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

TMessagesProj/src/main/java/org/telegram/ui/ContentPreviewViewer.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -545,14 +545,16 @@ public void run() {
545545
items.add(LocaleController.getString("SaveToGallery", R.string.SaveToGallery));
546546
icons.add(R.drawable.msg_gallery);
547547
actions.add(nkbtn_stickerdl);
548-
if (NaConfig.INSTANCE.getShowCopyPhoto().Bool()) {
549-
items.add(LocaleController.getString("CopyPhotoAsSticker", R.string.CopyPhotoAsSticker));
550-
icons.add(R.drawable.msg_copy);
551-
actions.add(nkbtn_sticker_copy);
552-
items.add(LocaleController.getString("CopyPhoto", R.string.CopyPhoto));
548+
if (!MessageObject.isAnimatedStickerDocument(currentDocument)) {
549+
items.add(getString(R.string.CopyPhoto));
553550
icons.add(R.drawable.msg_copy);
554551
actions.add(nkbtn_sticker_copy_png);
555552
}
553+
if (!MessageObject.isAnimatedStickerDocument(currentDocument)) {
554+
items.add(getString(R.string.CopyPhotoAsSticker));
555+
icons.add(R.drawable.msg_copy);
556+
actions.add(nkbtn_sticker_copy);
557+
}
556558
}
557559
if (!MessageObject.isMaskDocument(currentDocument) && (inFavs || MediaDataController.getInstance(currentAccount).canAddStickerToFavorites() && MessageObject.isStickerHasSet(currentDocument))) {
558560
items.add(inFavs ? LocaleController.getString(R.string.DeleteFromFavorites) : LocaleController.getString(R.string.AddToFavorites));

0 commit comments

Comments
 (0)