fix: cannot disable TakeGIFasVideo
This commit is contained in:
parent
4eae3e2155
commit
ab5fefd186
@ -12181,7 +12181,7 @@ public class PhotoViewer implements NotificationCenter.NotificationCenterDelegat
|
|||||||
NotificationCenter.getInstance(currentAccount).postNotificationName(NotificationCenter.dialogPhotosUpdate, dialogPhotos);
|
NotificationCenter.getInstance(currentAccount).postNotificationName(NotificationCenter.dialogPhotosUpdate, dialogPhotos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (currentMessageObject != null && (currentMessageObject.isVideo() || currentMessageObject.isGif()) || currentBotInlineResult != null && (currentBotInlineResult.type.equals("video") || MessageObject.isVideoDocument(currentBotInlineResult.document)) || (pageBlocksAdapter != null && (pageBlocksAdapter.isVideo(index) || pageBlocksAdapter.isHardwarePlayer(index))) || (sendPhotoType == SELECT_TYPE_NO_SELECT && ((MediaController.PhotoEntry)imagesArrLocals.get(index)).isVideo)) {
|
if (currentMessageObject != null && (currentMessageObject.isVideo() || (currentMessageObject.isGif() && NekoConfig.takeGIFasVideo.Bool())) || currentBotInlineResult != null && (currentBotInlineResult.type.equals("video") || MessageObject.isVideoDocument(currentBotInlineResult.document)) || (pageBlocksAdapter != null && (pageBlocksAdapter.isVideo(index) || pageBlocksAdapter.isHardwarePlayer(index))) || (sendPhotoType == SELECT_TYPE_NO_SELECT && ((MediaController.PhotoEntry)imagesArrLocals.get(index)).isVideo)) {
|
||||||
playerAutoStarted = true;
|
playerAutoStarted = true;
|
||||||
onActionClick(false);
|
onActionClick(false);
|
||||||
} else if (!imagesArrLocals.isEmpty()) {
|
} else if (!imagesArrLocals.isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user