mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-31 15:37:01 +00:00
Fix iPad photo editor layout
This commit is contained in:
parent
6f60e7c89e
commit
dd0e8b66ac
@ -403,6 +403,7 @@
|
||||
|
||||
TGPhotoEditorControllerIntent intent = isVideo ? TGPhotoEditorControllerVideoIntent : TGPhotoEditorControllerGenericIntent;
|
||||
TGPhotoEditorController *controller = [[TGPhotoEditorController alloc] initWithContext:_context item:editableMediaItem intent:intent adjustments:adjustments caption:caption screenImage:screenImage availableTabs:_interfaceView.currentTabs selectedTab:tab];
|
||||
controller.modalPresentationStyle = UIModalPresentationFullScreen;
|
||||
controller.entitiesView = entitiesView;
|
||||
controller.editingContext = _editingContext;
|
||||
controller.stickersContext = _stickersContext;
|
||||
|
@ -521,12 +521,10 @@ static id<LegacyComponentsContext> _defaultContext = nil;
|
||||
|
||||
- (bool)inFormSheet
|
||||
{
|
||||
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone)
|
||||
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
|
||||
return false;
|
||||
else
|
||||
{
|
||||
if ([self.navigationController isKindOfClass:[TGNavigationController class]])
|
||||
{
|
||||
} else {
|
||||
if ([self.navigationController isKindOfClass:[TGNavigationController class]]) {
|
||||
switch (((TGNavigationController *)self.navigationController).presentationStyle)
|
||||
{
|
||||
case TGNavigationControllerPresentationStyleInFormSheet:
|
||||
|
Loading…
x
Reference in New Issue
Block a user