mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Video avatar fixes
This commit is contained in:
@@ -1281,7 +1281,7 @@
|
||||
cropController.toolbarLandscapeSize = TGPhotoEditorToolbarSize;
|
||||
cropController.controlVideoPlayback = ^(bool play) {
|
||||
__strong TGPhotoEditorController *strongSelf = weakSelf;
|
||||
if (strongSelf == nil)
|
||||
if (strongSelf == nil || strongSelf->_progressVisible)
|
||||
return;
|
||||
if (play) {
|
||||
[strongSelf startVideoPlayback:false];
|
||||
@@ -1297,7 +1297,7 @@
|
||||
};
|
||||
cropController.togglePlayback = ^{
|
||||
__strong TGPhotoEditorController *strongSelf = weakSelf;
|
||||
if (strongSelf == nil || !strongSelf->_item.isVideo)
|
||||
if (strongSelf == nil || !strongSelf->_item.isVideo || strongSelf->_progressVisible)
|
||||
return;
|
||||
|
||||
if (strongSelf->_isPlaying) {
|
||||
|
||||
Reference in New Issue
Block a user