Commit 0a96d6d2 authored by Felix Paul Kühne's avatar Felix Paul Kühne

cloud services: fix iCloud Drive appearance on iPad in landscape mode

parent c7a1b01f
......@@ -145,7 +145,7 @@
default:
break;
}
// cell.icon.contentMode = UIViewContentModeScaleAspectFit;
return cell;
}
......@@ -155,12 +155,11 @@
{
// don't let select CLOUD_DRIVES menu item since there is no view controller to reveal
if (indexPath.row == 4) {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
[self.documentPickerController showDocumentMenuViewController:[self.tableView cellForRowAtIndexPath:indexPath]];
} else {
[tableView deselectRowAtIndexPath:indexPath animated:YES];
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
[self.documentPickerController showDocumentMenuViewController:[(VLCCloudServiceCell *)[self.tableView cellForRowAtIndexPath:indexPath] icon]];
else
[self.documentPickerController showDocumentMenuViewController:nil];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
return nil;
} else
......
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