Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoanglam committed Jul 25, 2023
1 parent 0fea3db commit 7f1b1cc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ dependencies {
Define an `ActivityResultLauncher` class variable in `Activity` or `Fragment`.
```java
private val launcher = registerImagePicker { images ->
// selected images
if(images.isNotEmpty()){
// selected images
if(images.isNotEmpty()){
val image = images[0]
Glide.with(this@MainActivity)
.load(image.uri)
.into(imageView)
}
}
.load(image.uri)
.into(imageView)
}
}
```

Then launch the picker
Expand Down

0 comments on commit 7f1b1cc

Please sign in to comment.