fixed sharing multiple items from vaults
This commit is contained in:
parent
03f7b3d479
commit
39d35c40be
2 changed files with 3 additions and 2 deletions
|
@ -21,6 +21,7 @@ All notable changes to this project will be documented in this file.
|
||||||
- Accessibility: using accessibility services keeping snack bar beyond countdown
|
- Accessibility: using accessibility services keeping snack bar beyond countdown
|
||||||
- Accessibility: navigation with TalkBack
|
- Accessibility: navigation with TalkBack
|
||||||
- Vaults: crash when using fingerprint on older Android versions
|
- Vaults: crash when using fingerprint on older Android versions
|
||||||
|
- Vaults: sharing multiple items
|
||||||
|
|
||||||
## <a id="v1.8.2"></a>[v1.8.2] - 2023-02-28
|
## <a id="v1.8.2"></a>[v1.8.2] - 2023-02-28
|
||||||
|
|
||||||
|
|
|
@ -285,7 +285,7 @@ class AppAdapterHandler(private val context: Context) : MethodCallHandler {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
val uriList = ArrayList(urisByMimeType.values.flatten().mapNotNull { Uri.parse(it) })
|
val uriList = ArrayList(urisByMimeType.values.flatten().mapNotNull { getShareableUri(context, Uri.parse(it)) })
|
||||||
val mimeTypes = urisByMimeType.keys.toTypedArray()
|
val mimeTypes = urisByMimeType.keys.toTypedArray()
|
||||||
|
|
||||||
// simplify share intent for a single item, as some apps can handle one item but not more
|
// simplify share intent for a single item, as some apps can handle one item but not more
|
||||||
|
@ -296,7 +296,7 @@ class AppAdapterHandler(private val context: Context) : MethodCallHandler {
|
||||||
Intent(Intent.ACTION_SEND)
|
Intent(Intent.ACTION_SEND)
|
||||||
.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
|
.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
|
||||||
.setType(mimeType)
|
.setType(mimeType)
|
||||||
.putExtra(Intent.EXTRA_STREAM, getShareableUri(context, uri))
|
.putExtra(Intent.EXTRA_STREAM, uri)
|
||||||
} else {
|
} else {
|
||||||
var mimeType = "*/*"
|
var mimeType = "*/*"
|
||||||
if (mimeTypes.size == 1) {
|
if (mimeTypes.size == 1) {
|
||||||
|
|
Loading…
Reference in a new issue