diff --git a/android/src/main/kotlin/com/jarvan/fluwx/handlers/FluwxShareHandler.kt b/android/src/main/kotlin/com/jarvan/fluwx/handlers/FluwxShareHandler.kt index 66dd7a79..f9f2e853 100644 --- a/android/src/main/kotlin/com/jarvan/fluwx/handlers/FluwxShareHandler.kt +++ b/android/src/main/kotlin/com/jarvan/fluwx/handlers/FluwxShareHandler.kt @@ -105,7 +105,11 @@ internal interface FluwxShareHandler : CoroutineScope { val uint8List = map["uint8List"] as? ByteArray val imageObject = uint8List?.let { WXImageObject().apply { - imageData = it + if (supportFileProvider && targetHigherThanN) { + setImagePath(getFileContentUri(it.toCacheFile(context, ".png"))) + } else { + imagePath = it.toExternalCacheFile(context, ".png")?.absolutePath + } imgDataHash = imgHash } }?:run {