From 6aa94cff5289935eba2c7b192b35abafe21e0a4c Mon Sep 17 00:00:00 2001 From: hhn1611245010 <1611245010@qq.com> Date: Tue, 19 Apr 2022 20:12:56 +0800 Subject: [PATCH] fix issue #758 (#822) --- TMessagesProj/src/main/java/org/telegram/ui/PhotoViewer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/PhotoViewer.java b/TMessagesProj/src/main/java/org/telegram/ui/PhotoViewer.java index f46911a1c..e507d2af1 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/PhotoViewer.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/PhotoViewer.java @@ -10666,6 +10666,7 @@ public class PhotoViewer implements NotificationCenter.NotificationCenterDelegat boolean canPaint = newMessageObject.getDocument() == null || newMessageObject.canPreviewDocument() || newMessageObject.getMimeType().startsWith("video/"); paintButton.setVisibility(canPaint && canSendMediaToParentChatActivity() ? View.VISIBLE : View.GONE); + shareButton.setVisibility(allowShare && shareItem.getVisibility() != View.VISIBLE ? View.VISIBLE : View.GONE); bottomButtonsLayout.setVisibility(!videoPlayerControlVisible ? View.VISIBLE : View.GONE); if (bottomButtonsLayout.getVisibility() == View.VISIBLE) { menuItem.hideSubItem(gallery_menu_share);