Revert "Fix secureBadge with safeArea"

This reverts commit 28ed9b8366.
This commit is contained in:
Benoit Martins 2023-07-20 10:22:19 +02:00
parent 3a33cd63b0
commit 1cf5996886
2 changed files with 5 additions and 2 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,6 +169,7 @@ class BackActionsNavigationView: UIViewController {
stackView.alignment = .center;
stackView.spacing = 1;
//stackView.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(stackView)
stackView.alignParentTop().done()
@ -270,6 +271,8 @@ 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
@ -348,7 +351,7 @@ class BackActionsNavigationView: UIViewController {
if UIDevice.current.orientation.isLandscape {
constraintLandscapeFloatingButton!.isActive = true
constraintFloatingButton!.isActive = false
} else if UIDevice.current.orientation.isPortrait {
} else {
constraintLandscapeFloatingButton!.isActive = false
constraintFloatingButton!.isActive = true
}