mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -21,8 +21,6 @@
|
||||
|
||||
#import <LegacyComponents/TGSecretTimerMenu.h>
|
||||
|
||||
#import "TGPhotoEntitiesContainerView.h"
|
||||
|
||||
@interface TGMediaPickerGalleryModel ()
|
||||
{
|
||||
TGMediaPickerGalleryInterfaceView *_interfaceView;
|
||||
@@ -363,7 +361,7 @@
|
||||
UIView *referenceParentView = nil;
|
||||
UIImage *image = nil;
|
||||
|
||||
TGPhotoEntitiesContainerView *entitiesView = nil;
|
||||
UIView<TGPhotoDrawingEntitiesView> *entitiesView = nil;
|
||||
|
||||
id<TGMediaEditableItem> editableMediaItem = item.editableMediaItem;
|
||||
|
||||
@@ -373,7 +371,7 @@
|
||||
screenImage = [(UIImageView *)editorReferenceView image];
|
||||
referenceView = editorReferenceView;
|
||||
|
||||
if ([editorReferenceView.subviews.firstObject.subviews.firstObject.subviews.firstObject isKindOfClass:[TGPhotoEntitiesContainerView class]]) {
|
||||
if ([editorReferenceView.subviews.firstObject.subviews.firstObject.subviews.firstObject conformsToProtocol:@protocol(TGPhotoDrawingEntitiesView)]) {
|
||||
entitiesView = editorReferenceView.subviews.firstObject.subviews.firstObject.subviews.firstObject;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user