mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
hide statusBar after rotation
This commit is contained in:
parent
466db3ef07
commit
df15b6cd27
1 changed files with 1 additions and 10 deletions
|
|
@ -256,7 +256,6 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
[super didRotateFromInterfaceOrientation:fromInterfaceOrientation];
|
||||
[self updateUnreadMessage:NO];
|
||||
[self previewTouchLift];
|
||||
[self hideStatusBar:!videoHidden && (_nameLabel.alpha <= 0.f)];
|
||||
[_recordButtonOnView setHidden:!callRecording];
|
||||
[self updateCallView];
|
||||
LinphoneCall *call = linphone_core_get_current_call(LC) ;
|
||||
|
|
@ -363,11 +362,10 @@ static void hideSpinner(LinphoneCall *call, void *user_data) {
|
|||
_optionsView.alpha = _numpadView.alpha = _bottomBar.alpha = (hidden ? 0 : 1);
|
||||
_infoView.alpha = (hidden ? 0 : .8f);
|
||||
|
||||
[self hideStatusBar:hidden];
|
||||
|
||||
[UIView commitAnimations];
|
||||
|
||||
[PhoneMainView.instance hideTabBar:hidden];
|
||||
[PhoneMainView.instance hideStatusBar:hidden];
|
||||
|
||||
if (!hidden) {
|
||||
// hide controls in 5 sec
|
||||
|
|
@ -444,13 +442,6 @@ static void hideSpinner(LinphoneCall *call, void *user_data) {
|
|||
[self disableVideoDisplay:TRUE animated:animated];
|
||||
}
|
||||
|
||||
- (void)hideStatusBar:(BOOL)hide {
|
||||
/* we cannot use [PhoneMainView.instance show]; because it will automatically
|
||||
resize current view to fill empty space, which will resize video. This is
|
||||
indesirable since we do not want to crop/rescale video view */
|
||||
PhoneMainView.instance.mainViewController.statusBarView.hidden = hide;
|
||||
}
|
||||
|
||||
- (void)callDurationUpdate {
|
||||
int duration =
|
||||
linphone_core_get_current_call(LC) ? linphone_call_get_duration(linphone_core_get_current_call(LC)) : 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue