Commit e9ea2659 authored by Felix Paul Kühne's avatar Felix Paul Kühne

ATV-cloud browsing: remove movie and audio specific icons as those weren't adapted in time

parent ddcc11af
{
"images" : [
{
"idiom" : "tv",
"filename" : "audio@3x.png",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "tv",
"filename" : "movie@3x.png",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
......@@ -49,16 +49,8 @@
NSString *iconName = dropboxFile.icon;
if ([iconName isEqualToString:@"folder_user"] || [iconName isEqualToString:@"folder"] || [iconName isEqualToString:@"folder_public"] || [iconName isEqualToString:@"folder_photos"] || [iconName isEqualToString:@"package"]) {
self.thumbnailImage = [UIImage imageNamed:@"folder"];
} else if ([iconName isEqualToString:@"page_white"] || [iconName isEqualToString:@"page_white_text"])
} else
self.thumbnailImage = [UIImage imageNamed:@"blank"];
else if ([iconName isEqualToString:@"page_white_film"])
self.thumbnailImage = [UIImage imageNamed:@"movie"];
else if ([iconName isEqualToString:@"page_white_sound"])
self.thumbnailImage = [UIImage imageNamed:@"audio"];
else {
self.thumbnailImage = [UIImage imageNamed:@"blank"];
APLog(@"missing icon for type '%@'", dropboxFile.icon);
}
}
}
......@@ -89,17 +81,14 @@
self.isDirectory = NO;
NSMutableString *subtitle = [[NSMutableString alloc] init];
self.thumbnailImage = [UIImage imageNamed:@"blank"];
if (oneDriveFile.isAudio)
self.thumbnailImage = [UIImage imageNamed:@"audio"];
else if (oneDriveFile.isVideo) {
self.thumbnailImage = [UIImage imageNamed:@"movie"];
if (oneDriveFile.isVideo) {
NSString *thumbnailURLString = oneDriveFile.thumbnailURL;
if (thumbnailURLString) {
[self setThumbnailURL:[NSURL URLWithString:thumbnailURLString]];
}
} else
self.thumbnailImage = [UIImage imageNamed:@"blank"];
}
if (oneDriveFile.size > 0) {
[subtitle appendString:[NSByteCountFormatter stringFromByteCount:[oneDriveFile.size longLongValue] countStyle:NSByteCountFormatterCountStyleFile]];
......
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