Skip to content

Commit 8d44e4d

Browse files
committed
Fix camera layout
1 parent d5010eb commit 8d44e4d

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

submodules/LegacyComponents/Sources/TGAttachmentCarouselItemView.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,7 @@ - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPa
920920
}
921921

922922
TGPhotoEditorController *controller = [[TGPhotoEditorController alloc] initWithContext:[windowManager context] item:editableItem intent:intent adjustments:nil caption:nil screenImage:thumbnailImage availableTabs:[TGPhotoEditorController defaultTabsForAvatarIntent:!_disableStickers] selectedTab:TGPhotoEditorCropTab];
923+
controller.modalPresentationStyle = UIModalPresentationFullScreen;
923924
controller.editingContext = _editingContext;
924925
controller.stickersContext = _stickersContext;
925926
controller.dontHideStatusBar = true;

submodules/LegacyComponents/Sources/TGMediaAssetsPickerController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPa
449449
}
450450

451451
TGPhotoEditorController *controller = [[TGPhotoEditorController alloc] initWithContext:_context item:editableItem intent:intent adjustments:nil caption:nil screenImage:thumbnailImage availableTabs:[TGPhotoEditorController defaultTabsForAvatarIntent:_intent != TGMediaAssetsControllerSetSignupProfilePhotoIntent] selectedTab:TGPhotoEditorCropTab];
452+
controller.modalPresentationStyle = UIModalPresentationFullScreen;
452453
controller.stickersContext = self.stickersContext;
453454
controller.editingContext = self.editingContext;
454455
controller.didFinishRenderingFullSizeImage = ^(UIImage *resultImage)

submodules/LegacyComponents/Sources/TGMediaAvatarMenuMixin.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ - (void)_displayCameraWithView:(TGAttachmentCameraView *)cameraView menuControll
340340
controller = [[TGCameraController alloc] initWithContext:[windowManager context] saveEditedPhotos:_saveEditedPhotos saveCapturedMedia:_saveCapturedMedia camera:cameraView.previewView.camera previewView:cameraView.previewView intent:_signup ? TGCameraControllerSignupAvatarIntent : TGCameraControllerAvatarIntent];
341341
else
342342
controller = [[TGCameraController alloc] initWithContext:[windowManager context] saveEditedPhotos:_saveEditedPhotos saveCapturedMedia:_saveCapturedMedia intent:_signup ? TGCameraControllerSignupAvatarIntent : TGCameraControllerAvatarIntent];
343+
controller.modalPresentationStyle = UIModalPresentationFullScreen;
343344
controller.stickersContext = _stickersContext;
344345
controller.shouldStoreCapturedAssets = true;
345346

submodules/TelegramUI/Components/LegacyCamera/Sources/LegacyCamera.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public func presentedLegacyCamera(context: AccountContext, peer: Peer?, chatLoca
3535
} else {
3636
controller = TGCameraController(context: legacyController.context, saveEditedPhotos: saveCapturedPhotos && !isSecretChat, saveCapturedMedia: saveCapturedPhotos && !isSecretChat)
3737
}
38+
controller.modalPresentationStyle = .fullScreen
3839
controller.inhibitMultipleCapture = editingMedia
3940

4041
if !initialCaption.string.isEmpty {

0 commit comments

Comments
 (0)