simplify the uri sharing
This commit is contained in:
parent
18104b98c0
commit
2ef400d342
1 changed files with 1 additions and 5 deletions
|
@ -15,11 +15,7 @@ fun Activity.shareUri(uri: Uri) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Activity.shareUris(uris: ArrayList<Uri>) {
|
fun Activity.shareUris(uris: ArrayList<Uri>) {
|
||||||
if (uris.size == 1) {
|
shareUris(uris, BuildConfig.APPLICATION_ID)
|
||||||
shareUri(uris.first())
|
|
||||||
} else {
|
|
||||||
shareUris(uris, BuildConfig.APPLICATION_ID)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Activity.openFile(uri: Uri, forceChooser: Boolean) {
|
fun Activity.openFile(uri: Uri, forceChooser: Boolean) {
|
||||||
|
|
Loading…
Reference in a new issue