We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b63ae2 commit f8fa7cbCopy full SHA for f8fa7cb
1 file changed
owncloudApp/src/main/java/com/owncloud/android/providers/DocumentsStorageProvider.kt
@@ -230,7 +230,7 @@ class DocumentsStorageProvider : DocumentsProvider() {
230
// If OwnCloud is protected with passcode or pattern and access from document provider is not allowed, return empty cursor
231
val preferences = PreferenceManager.getDefaultSharedPreferences(context)
232
val lockAccessFromDocumentProvider = preferences.getBoolean(PREFERENCE_LOCK_ACCESS_FROM_DOCUMENT_PROVIDER, false)
233
- if (lockAccessFromDocumentProvider) {
+ if (lockAccessFromDocumentProvider && AccountUtils.getAccounts(contextApp).isNotEmpty()) {
234
return result.apply { addProtectedRoot(contextApp) }
235
}
236
0 commit comments