mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-26 16:25:03 +01:00
use the new way of getting FileDirItem content URIs
This commit is contained in:
parent
ff5019998d
commit
8bfa7fdc7c
@ -78,7 +78,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:4b3acbca86'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:e919f1507b'
|
||||||
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
|
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
|
||||||
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
||||||
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.24'
|
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.24'
|
||||||
|
@ -84,7 +84,7 @@ class SaveAsDialog(
|
|||||||
val isInSubFolderInDownloadDir = activity.isInSubFolderInDownloadDir(newPath)
|
val isInSubFolderInDownloadDir = activity.isInSubFolderInDownloadDir(newPath)
|
||||||
if ((isRPlus() && !isExternalStorageManager()) && isInDownloadDir && !isInSubFolderInDownloadDir && !newFile.canWrite()) {
|
if ((isRPlus() && !isExternalStorageManager()) && isInDownloadDir && !isInSubFolderInDownloadDir && !newFile.canWrite()) {
|
||||||
val fileDirItem = arrayListOf(File(newPath).toFileDirItem(activity))
|
val fileDirItem = arrayListOf(File(newPath).toFileDirItem(activity))
|
||||||
val fileUris = activity.getFileUrisFromFileDirItems(fileDirItem).second
|
val fileUris = activity.getFileUrisFromFileDirItems(fileDirItem)
|
||||||
activity.updateSDK30Uris(fileUris) { success ->
|
activity.updateSDK30Uris(fileUris) { success ->
|
||||||
if (success) {
|
if (success) {
|
||||||
selectPath(this, newPath)
|
selectPath(this, newPath)
|
||||||
|
Loading…
Reference in New Issue
Block a user