Skip to content

Commit 6cec9a7

Browse files
committed
Fixed a crash on the iphone x about a scroll
1 parent 49d5185 commit 6cec9a7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Owncloud iOs Client/AppDelegate.m

+2-3
Original file line numberDiff line numberDiff line change
@@ -2878,9 +2878,8 @@ - (void)openLinksInAppWithLink:(NSURL *)url {
28782878

28792879
} else {
28802880

2881-
FileDto *root = [ManageFilesDB getRootFileDtoByUser:_activeUser];
2882-
if (fileToOpen.fileId != root.idFile) {
2883-
FileDto *parent = items[items.count - 2];
2881+
if (_presentFilesViewController.fileIdToShowFiles.idFile != ((FileDto *)[items firstObject]).idFile) {
2882+
FileDto *parent = [items firstObject];
28842883
[_presentFilesViewController navigateTo: parent];
28852884
}
28862885
}

0 commit comments

Comments
 (0)