forked from mirrors/linphone-iphone
Preserve Call VC Single Instance in case of cache cleaning
This commit is contained in:
parent
f396cdf5a4
commit
deb4fbb71e
1 changed files with 3 additions and 1 deletions
|
|
@ -307,11 +307,13 @@
|
|||
|
||||
|
||||
- (void)clearCache:(NSArray *)exclude {
|
||||
|
||||
|
||||
for (NSString *key in [viewControllerCache allKeys]) {
|
||||
bool remove = true;
|
||||
|
||||
/*ImagePickerView can be used as popover and we do NOT want to free it*/;
|
||||
if ([key isEqualToString:ImagePickerView.compositeViewDescription.name]) {
|
||||
if ([key isEqualToString:ImagePickerView.compositeViewDescription.name] || [key isEqualToString:ActiveCallOrConferenceView.compositeViewDescription.name]) {
|
||||
remove = false;
|
||||
} else if (exclude != nil) {
|
||||
for (UICompositeViewDescription *description in exclude) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue