forked from mirrors/linphone-iphone
parent
0ede98bcf6
commit
806975edeb
2 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue