mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 13:08:08 +00:00
Remove deprecated keyWindow
This commit is contained in:
parent
41eb23e825
commit
3dc945dccf
1 changed files with 4 additions and 2 deletions
|
|
@ -303,7 +303,8 @@ class ChatConversationViewSwift: BackActionsNavigationView, PHPickerViewControll
|
|||
|
||||
field.isUserInteractionEnabled = false
|
||||
|
||||
if UIApplication.shared.keyWindow != nil {
|
||||
let keyWindow = UIApplication.shared.windows.filter {$0.isKeyWindow}.first
|
||||
if keyWindow != nil {
|
||||
if ConfigManager.instance().lpConfigBoolForKey(key: "screenshot_preference") == false && floatingButton.isHidden == false {
|
||||
PhoneMainView.instance()!.mainViewController.view.changeSecure(field: field, isSecure: true)
|
||||
}else{
|
||||
|
|
@ -318,7 +319,8 @@ class ChatConversationViewSwift: BackActionsNavigationView, PHPickerViewControll
|
|||
}
|
||||
AvatarBridge.removeAllObserver()
|
||||
|
||||
if UIApplication.shared.keyWindow != nil {
|
||||
let keyWindow = UIApplication.shared.windows.filter {$0.isKeyWindow}.first
|
||||
if keyWindow != nil {
|
||||
PhoneMainView.instance()!.mainViewController.view.changeSecure(field: field, isSecure: false)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue