Skip to content

Commit f8fa7cb

Browse files
committed
ownCloud option hidden because no accounts have been attached yet.
1 parent 9b63ae2 commit f8fa7cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

owncloudApp/src/main/java/com/owncloud/android/providers/DocumentsStorageProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class DocumentsStorageProvider : DocumentsProvider() {
230230
// If OwnCloud is protected with passcode or pattern and access from document provider is not allowed, return empty cursor
231231
val preferences = PreferenceManager.getDefaultSharedPreferences(context)
232232
val lockAccessFromDocumentProvider = preferences.getBoolean(PREFERENCE_LOCK_ACCESS_FROM_DOCUMENT_PROVIDER, false)
233-
if (lockAccessFromDocumentProvider) {
233+
if (lockAccessFromDocumentProvider && AccountUtils.getAccounts(contextApp).isNotEmpty()) {
234234
return result.apply { addProtectedRoot(contextApp) }
235235
}
236236

0 commit comments

Comments
 (0)