Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public static String getFileMimeType(String filePath) {
String[] fileStrs = filePath.split("\\.");
String fileTypeStr = fileStrs[fileStrs.length - 1].toLowerCase();
switch (fileTypeStr) {
case "ics":
return "text/calendar";
case "3gp":
return "video/3gpp";
case "torrent":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ -(void) setControllerUTI:(NSString*) filePath __attribute__(( deprecated ( "Now
_documentController.UTI=@"com.microsoft.windows-​media-wmv";
}else if([exestr isEqualToString:@"pdf"]){
_documentController.UTI=@"com.adobe.pdf";
}else if([exestr isEqualToString:@"ics"]){
_documentController.UTI = @"com.apple.ical.ics";
}else {
NSLog(@"doc type not supported for preview");
NSLog(@"%@", exestr);
Expand Down