Fix secureBadge with safeArea

Fix presence in ContactsListTableVIew
This commit is contained in:
Benoit Martins 2023-07-12 15:30:28 +02:00
parent 3265e27eb1
commit 32f264d8e4
2 changed files with 2 additions and 5 deletions

View file

@ -69,12 +69,12 @@
-(void)viewWillDisappear:(BOOL)animated{
[super viewWillDisappear:animated];
[[NSNotificationCenter defaultCenter] removeObserver:self name:@"LinphoneFriendPresenceUpdate" object:nil];
[AvatarBridge removeAllObserver];
}
-(void)viewDidDisappear:(BOOL)animated{
[super viewDidDisappear:animated];
[[NSNotificationCenter defaultCenter] removeObserver:self name:@"LinphoneFriendPresenceUpdate" object:nil];
}
-(void) receivePresenceNotification:(NSNotification*)notification

View file

@ -169,7 +169,6 @@ class BackActionsNavigationView: UIViewController {
stackView.alignment = .center;
stackView.spacing = 1;
//stackView.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(stackView)
stackView.alignParentTop().done()
@ -271,8 +270,6 @@ class BackActionsNavigationView: UIViewController {
constraintLandscapeFloatingButton = floatingButton.rightAnchor.constraint(equalTo: self.view.rightAnchor, constant: -56)
if UIDevice.current.orientation.isLandscape {
constraintLandscapeFloatingButton!.isActive = true
} else {
constraintFloatingButton!.isActive = true
}
constraintFloatingButton!.isActive = true
floatingButton.topAnchor.constraint(equalTo: self.view.layoutMarginsGuide.topAnchor, constant: top_bar_height).isActive = true
@ -351,7 +348,7 @@ class BackActionsNavigationView: UIViewController {
if UIDevice.current.orientation.isLandscape {
constraintLandscapeFloatingButton!.isActive = true
constraintFloatingButton!.isActive = false
} else {
} else if UIDevice.current.orientation.isPortrait {
constraintLandscapeFloatingButton!.isActive = false
constraintFloatingButton!.isActive = true
}