Skip to content

Commit

Permalink
Get correct type for 'Uri' from intent
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Krüger <t@timkrueger.me>
  • Loading branch information
timkrueger committed Nov 17, 2022
1 parent f60ea4f commit 224aa1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class ImagePickerActivity : AppCompatActivity() {
savedInstanceState ?: mCameraProvider?.startIntent()
}
ImageProvider.URI -> {
(intent?.getSerializableExtra(ImagePicker.EXTRA_URI) as Uri?)?.let {
(intent?.getParcelableExtra(ImagePicker.EXTRA_URI) as Uri?)?.let {
setImage(it)
}
}
Expand Down

0 comments on commit 224aa1b

Please sign in to comment.