Various Fixes

This commit is contained in:
Ilya Laktyushin
2021-12-08 16:49:34 +04:00
parent 3c46e77712
commit e471e185b0
4 changed files with 6 additions and 9 deletions

View File

@@ -94,7 +94,7 @@
bool _scheduledVideoPlayback;
id<TGMediaEditAdjustments> _initialAdjustments;
NSString *_caption;
NSAttributedString *_caption;
bool _viewFillingWholeScreen;
bool _forceStatusBarVisible;
@@ -139,7 +139,7 @@
@synthesize actionHandle = _actionHandle;
- (instancetype)initWithContext:(id<LegacyComponentsContext>)context item:(id<TGMediaEditableItem>)item intent:(TGPhotoEditorControllerIntent)intent adjustments:(id<TGMediaEditAdjustments>)adjustments caption:(NSString *)caption screenImage:(UIImage *)screenImage availableTabs:(TGPhotoEditorTab)availableTabs selectedTab:(TGPhotoEditorTab)selectedTab
- (instancetype)initWithContext:(id<LegacyComponentsContext>)context item:(id<TGMediaEditableItem>)item intent:(TGPhotoEditorControllerIntent)intent adjustments:(id<TGMediaEditAdjustments>)adjustments caption:(NSAttributedString *)caption screenImage:(UIImage *)screenImage availableTabs:(TGPhotoEditorTab)availableTabs selectedTab:(TGPhotoEditorTab)selectedTab
{
self = [super initWithContext:context];
if (self != nil)
@@ -2292,7 +2292,7 @@
_documentController.delegate = self;
[_documentController setUTI:@"com.instagram.exclusivegram"];
if (_caption.length > 0)
[_documentController setAnnotation:@{@"InstagramCaption" : _caption}];
[_documentController setAnnotation:@{@"InstagramCaption" : _caption.string}];
[_documentController presentOpenInMenuFromRect:self.view.frame inView:self.view animated:true];
}];
}