mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various fixes
This commit is contained in:
@@ -233,17 +233,6 @@
|
||||
[_wrapperView addSubview:_recipientLabel];
|
||||
}
|
||||
|
||||
if (hasCameraButton)
|
||||
{
|
||||
_cameraButton = [[TGMediaPickerCameraButton alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 44.0f, 44.0f)];
|
||||
_cameraButton.adjustsImageWhenHighlighted = false;
|
||||
[_cameraButton addTarget:self action:@selector(cameraButtonPressed) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
[_wrapperView addSubview:_cameraButton];
|
||||
|
||||
//if (_selectionContext != nil)
|
||||
// [_cameraButton setHidden:true animated:false];
|
||||
}
|
||||
|
||||
if (_selectionContext != nil)
|
||||
{
|
||||
@@ -429,6 +418,15 @@
|
||||
[_wrapperView addSubview:_coverGalleryButton];
|
||||
}
|
||||
|
||||
if (hasCameraButton)
|
||||
{
|
||||
_cameraButton = [[TGMediaPickerCameraButton alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 44.0f, 44.0f)];
|
||||
_cameraButton.adjustsImageWhenHighlighted = false;
|
||||
[_cameraButton addTarget:self action:@selector(cameraButtonPressed) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
[_wrapperView addSubview:_cameraButton];
|
||||
}
|
||||
|
||||
TGPhotoEditorDoneButton doneButton = isScheduledMessages ? TGPhotoEditorDoneButtonSchedule : TGPhotoEditorDoneButtonSend;
|
||||
|
||||
_portraitToolbarView = [[TGPhotoToolbarView alloc] initWithContext:_context backButton:TGPhotoEditorBackButtonBack doneButton:doneButton solidBackground:false];
|
||||
|
||||
Reference in New Issue
Block a user