mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various Fixes
This commit is contained in:
@@ -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];
|
||||
}];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user