Commit 7cb22d72 authored by Felix Paul Kühne's avatar Felix Paul Kühne

OneDrive: micro-optimization

parent 3e2fa799
......@@ -173,9 +173,10 @@
self.thumbnailView.image = [UIImage imageNamed:@"audio"];
else if (self.oneDriveFile.isVideo) {
self.thumbnailView.image = [UIImage imageNamed:@"movie"];
if (_oneDriveFile.thumbnailURL != nil) {
if (_oneDriveFile.thumbnailURL.length > 0) {
_iconURL = [NSURL URLWithString:_oneDriveFile.thumbnailURL];
NSString *thumbnailURL = _oneDriveFile.thumbnailURL;
if (thumbnailURL != NULL) {
if (thumbnailURL.length > 0) {
_iconURL = [NSURL URLWithString:thumbnailURL];
[self performSelectorInBackground:@selector(_updateIconFromURL) withObject:@""];
}
}
......
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