зеркало из https://github.com/nextcloud/talk-ios.git
Merge pull request #325 from nextcloud/fix-modal-views-ios13
Fix modal views in iOS 13
This commit is contained in:
Коммит
208b81f63a
|
@ -31,6 +31,9 @@ NSString * const kNCAuthTokenFlowEndpoint = @"/index.php/login/flo
|
|||
self = [super init];
|
||||
if (self) {
|
||||
self.serverUrl = serverUrl;
|
||||
if (@available(iOS 13.0, *)) {
|
||||
self.modalPresentationStyle = ([[NCDatabaseManager sharedInstance] numberOfAccounts] == 0) ? UIModalPresentationFullScreen : UIModalPresentationAutomatic;
|
||||
}
|
||||
}
|
||||
|
||||
return self;
|
||||
|
|
|
@ -81,6 +81,8 @@ typedef NS_ENUM(NSInteger, CallState) {
|
|||
return nil;
|
||||
}
|
||||
|
||||
self.modalPresentationStyle = UIModalPresentationFullScreen;
|
||||
|
||||
_room = room;
|
||||
_displayName = displayName;
|
||||
_isAudioOnly = audioOnly;
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#import "AuthenticationViewController.h"
|
||||
#import "LoginViewController.h"
|
||||
#import "NCConnectionController.h"
|
||||
#import "NCDatabaseManager.h"
|
||||
#import "NCRoomsManager.h"
|
||||
#import "NCSettingsController.h"
|
||||
#import "JDStatusBarNotification.h"
|
||||
|
@ -79,6 +80,9 @@
|
|||
{
|
||||
_loginViewController = [[LoginViewController alloc] init];
|
||||
_loginViewController.delegate = self;
|
||||
if (@available(iOS 13.0, *)) {
|
||||
_loginViewController.modalPresentationStyle = ([[NCDatabaseManager sharedInstance] numberOfAccounts] == 0) ? UIModalPresentationFullScreen : UIModalPresentationAutomatic;
|
||||
}
|
||||
[_mainNavigationController presentViewController:_loginViewController animated:YES completion:nil];
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче