Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Fix Not getting data clip if select picture from gallery app #1038

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class SelectImageActivity : AppCompatActivity() {

private fun handleImageRequestResult(data: Intent) {
// Get the imageUri the user picked, from the Intent.ACTION_PICK result.
val imageUri = data.clipData!!.getItemAt(0).uri
val imageUri = data.data

if (imageUri == null) {
Log.e(TAG, "Invalid input image Uri.")
Expand Down