Skip to content

Commit

Permalink
Content Query Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nafiskabbo committed May 23, 2022
1 parent b01b7dc commit 82566df
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ class ImagePickerViewModel(application: Application) : AndroidViewModel(applicat
val bucketId = cursor.getLong(bucketIdColumn)
val bucketName = cursor.getString(bucketNameColumn)

val uri = ContentUris.withAppendedId(imageCollectionUri, id)
val uri = ContentUris.withAppendedId(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, id)
// val uri = ContentUris.withAppendedId(imageCollectionUri, id)

val image = Image(uri, name, bucketId, bucketName)
images.add(image)
Expand Down

0 comments on commit 82566df

Please sign in to comment.