mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
fix crash when parse recording file failed, may changed phone language
This commit is contained in:
parent
faa4e15462
commit
71a9b8ef41
1 changed files with 4 additions and 0 deletions
|
|
@ -84,6 +84,10 @@
|
|||
NSArray *parsedName = [LinphoneUtils parseRecordingName:file];
|
||||
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
|
||||
[dateFormat setDateFormat:@"EEEE, MMM d, yyyy"];
|
||||
if ([parsedName count] < 2) {
|
||||
LOGW(@"Can not parse this recoding file: %@", file);
|
||||
continue;
|
||||
}
|
||||
NSString *dayPretty = [dateFormat stringFromDate:[parsedName objectAtIndex:1]];
|
||||
NSMutableArray *recOfDay = [recordings objectForKey:dayPretty];
|
||||
if (recOfDay) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue