Skip to content

Commit

Permalink
Add some logging for filesysremprovider document flags
Browse files Browse the repository at this point in the history
  • Loading branch information
nain-F49FF806 committed Aug 14, 2024
1 parent 9021229 commit 371dda7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
defaultConfig {
minSdk = rootProject.extra["minSdkVersion"] as Int
targetSdk = rootProject.extra["targetSdkVersion"] as Int
versionCode = 1723581000
versionName = "2024.08.13"
versionCode = 1723635000
versionName = "2024.08.14"
applicationId = "alt.nainapps.aer"
vectorDrawables {
useSupportLibrary = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -556,15 +556,20 @@ abstract class FileSystemProvider : DocumentsProvider() {
if (DocumentsContract.Document.MIME_TYPE_DIR == mimeType) {
flags = flags or DocumentsContract.Document.FLAG_DIR_SUPPORTS_CREATE
if (isNotEssential(path)) {
flags = flags or DocumentsContract.Document.FLAG_SUPPORTS_WRITE
flags = flags or DocumentsContract.Document.FLAG_SUPPORTS_DELETE
flags = flags or DocumentsContract.Document.FLAG_SUPPORTS_RENAME
flags = flags or DocumentsContract.Document.FLAG_SUPPORTS_COPY
flags = flags or DocumentsContract.Document.FLAG_SUPPORTS_MOVE
Log.d(TAG, "Flag $flags for: $path")
}
} else {
flags = flags or DocumentsContract.Document.FLAG_SUPPORTS_WRITE
flags = flags or DocumentsContract.Document.FLAG_SUPPORTS_DELETE
flags = flags or DocumentsContract.Document.FLAG_SUPPORTS_RENAME
flags = flags or DocumentsContract.Document.FLAG_SUPPORTS_COPY
flags = flags or DocumentsContract.Document.FLAG_SUPPORTS_MOVE
Log.d(TAG, "Flag $flags for: $path")
}
}

Expand Down

0 comments on commit 371dda7

Please sign in to comment.