Commit 164b0f58 authored by DanmeiChen's avatar DanmeiChen
Browse files

fix crash enterBackground when current view is DevicesListView

parent 565ad485
......@@ -69,8 +69,8 @@
} else if (PhoneMainView.instance.currentView == ChatConversationInfoView.compositeViewDescription) {
ChatConversationInfoView *view = VIEW(ChatConversationInfoView);
[view removeCallbacks];
} else if (PhoneMainView.instance.currentView == RecordingsListView.compositeViewDescription) {
// To avoid crash if recording is still played.
} else if (PhoneMainView.instance.currentView == RecordingsListView.compositeViewDescription || PhoneMainView.instance.currentView == DevicesListView.compositeViewDescription) {
// To avoid crash
[PhoneMainView.instance changeCurrentView:DialerView.compositeViewDescription];
}
[CoreManager.instance stopLinphoneCore];
......
......@@ -51,6 +51,7 @@
#import "UIConfirmationDialog.h"
#import "Utils.h"
#import "LaunchScreen.h"
#import "DevicesListView.h"
#define DYNAMIC_CAST(x, cls) \
({ \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment