mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Revert "Fix crash upon device rotation when playing back voice memo"
This reverts commit d326b7f56e.
This commit is contained in:
parent
555428d62d
commit
a120a067c9
1 changed files with 2 additions and 5 deletions
|
|
@ -285,9 +285,6 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
_toggleRecord.enabled = linphone_core_get_calls_nb(LC) == 0;
|
||||
|
||||
[PhoneMainView.instance hideTabBar:!IPAD];
|
||||
[self createVoicePlayer];
|
||||
[self createVoiceRecorder];
|
||||
|
||||
}
|
||||
|
||||
- (void)viewWillDisappear:(BOOL)animated {
|
||||
|
|
@ -380,7 +377,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
_chatView.hidden = YES;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (!_chatRoomCbs) {
|
||||
_chatRoomCbs = linphone_factory_create_chat_room_cbs(linphone_factory_get());
|
||||
linphone_chat_room_cbs_set_state_changed(_chatRoomCbs, on_chat_room_state_changed);
|
||||
|
|
@ -2221,7 +2218,7 @@ void on_shared_player_eof_reached(LinphonePlayer *p) {
|
|||
}
|
||||
|
||||
-(void) stopAllPlays {
|
||||
if (_sharedVoicePlayer &&linphone_player_get_user_data(_sharedVoicePlayer)) {
|
||||
if (linphone_player_get_user_data(_sharedVoicePlayer)) {
|
||||
NSDictionary* userInfo = @{@"path": [NSString stringWithUTF8String:linphone_player_get_user_data(_sharedVoicePlayer)]};
|
||||
[NSNotificationCenter.defaultCenter postNotificationName:kLinphoneVoiceMessagePlayerLostFocus object:nil userInfo:userInfo];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue