improve the way multiple files are shared/opened
This commit is contained in:
parent
2ef400d342
commit
a6f82c466a
|
@ -46,7 +46,7 @@ ext {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:2.41.2'
|
||||
implementation 'com.simplemobiletools:commons:2.41.4'
|
||||
|
||||
implementation files('../libs/RootTools.jar')
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@ import com.simplemobiletools.commons.dialogs.RenameItemDialog
|
|||
import com.simplemobiletools.commons.extensions.*
|
||||
import com.simplemobiletools.commons.models.FileDirItem
|
||||
import com.simplemobiletools.commons.views.MyRecyclerView
|
||||
import com.simplemobiletools.filemanager.BuildConfig
|
||||
import com.simplemobiletools.filemanager.R
|
||||
import com.simplemobiletools.filemanager.activities.SimpleActivity
|
||||
import com.simplemobiletools.filemanager.dialogs.CompressAsDialog
|
||||
|
@ -147,7 +146,7 @@ class ItemsAdapter(activity: SimpleActivity, var fileDirItems: MutableList<FileD
|
|||
addFileUris(it, uris)
|
||||
}
|
||||
} else {
|
||||
uris.add(activity.getFilePublicUri(file, BuildConfig.APPLICATION_ID))
|
||||
uris.add(Uri.fromFile(file))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -4,16 +4,10 @@ import android.app.Activity
|
|||
import android.net.Uri
|
||||
import com.simplemobiletools.commons.extensions.openFile
|
||||
import com.simplemobiletools.commons.extensions.setAs
|
||||
import com.simplemobiletools.commons.extensions.shareUri
|
||||
import com.simplemobiletools.commons.extensions.shareUris
|
||||
import com.simplemobiletools.filemanager.BuildConfig
|
||||
import java.util.*
|
||||
|
||||
|
||||
fun Activity.shareUri(uri: Uri) {
|
||||
shareUri(uri, BuildConfig.APPLICATION_ID)
|
||||
}
|
||||
|
||||
fun Activity.shareUris(uris: ArrayList<Uri>) {
|
||||
shareUris(uris, BuildConfig.APPLICATION_ID)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue