diff --git a/external/libzip/libzip.xcodeproj/project.pbxproj b/external/libzip/libzip.xcodeproj/project.pbxproj index 7cf933b83..f03b4736f 100644 --- a/external/libzip/libzip.xcodeproj/project.pbxproj +++ b/external/libzip/libzip.xcodeproj/project.pbxproj @@ -467,6 +467,7 @@ hasScannedForEncodings = 0; knownRegions = ( en, + Base, ); mainGroup = DCE93FD921FCA42B000E14F2; productRefGroup = DCE93FE421FCA42C000E14F2 /* Products */; diff --git a/ios-sdk b/ios-sdk index edc8c00cb..494224c7f 160000 --- a/ios-sdk +++ b/ios-sdk @@ -1 +1 @@ -Subproject commit edc8c00cbc66665d5c71a1289f987acbcbd2beb7 +Subproject commit 494224c7fc20904457f1c2be0e959d5459b7f5c7 diff --git a/ownCloud File Provider/FileProviderExtension.m b/ownCloud File Provider/FileProviderExtension.m index a5747cadf..94ff6b72f 100644 --- a/ownCloud File Provider/FileProviderExtension.m +++ b/ownCloud File Provider/FileProviderExtension.m @@ -896,3 +896,8 @@ - (void)core:(OCCore *)core handleError:(NSError *)error issue:(OCIssue *)issue @end OCClaimExplicitIdentifier OCClaimExplicitIdentifierFileProvider = @"fileProvider"; + +/* + Additional information: + - NSExtensionFileProviderSupportsPickingFolders: https://twitter.com/palmin/status/1177860144258076673 +*/ diff --git a/ownCloud File Provider/OCItem+FileProviderItem.m b/ownCloud File Provider/OCItem+FileProviderItem.m index 81396450f..ecbcbf370 100644 --- a/ownCloud File Provider/OCItem+FileProviderItem.m +++ b/ownCloud File Provider/OCItem+FileProviderItem.m @@ -123,6 +123,14 @@ - (BOOL)isDownloaded return (YES); } + if (self.type == OCItemTypeCollection) + { + // Needs to return YES for folders in order to allow browsing while offline + // Otherwise Files.app will bring up an alert "You're not connected to the Internet" + // (big thanks to @palmin who pointed me to this possibility) + return (YES); + } + return (NO); }