Skip to content

Commit

Permalink
fix: unable to crop shared images
Browse files Browse the repository at this point in the history
  • Loading branch information
criticalAY authored and mikehardy committed Nov 18, 2024
1 parent 24bde7b commit fdbadd5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,13 @@ class MultimediaImageFragment : MultimediaFragment(R.layout.fragment_multimedia_
}

private fun handleImageUri() {
fun processExternalImage(uri: Uri): Uri? = internalizeUri(uri)?.let { Uri.fromFile(it) }

if (imageUri != null) {
view?.findViewById<TextView>(R.id.no_image_textview)?.visibility = View.GONE
handleSelectImageIntent(imageUri)

val internalUri = imageUri?.let { processExternalImage(it) }
handleSelectImageIntent(internalUri)
} else {
handleSelectedImageOptions()
}
Expand Down

0 comments on commit fdbadd5

Please sign in to comment.