Skip to content

Commit

Permalink
Glimpse: Don't hardcode external volume name
Browse files Browse the repository at this point in the history
Change-Id: Ifc2c17080e2dbbf52f8195267829d036550acca4
  • Loading branch information
luca020400 committed Jan 31, 2024
1 parent bd69720 commit 585c9bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import android.net.Uri
import android.provider.MediaStore

object MediaQuery {
val MediaStoreFileUri: Uri = MediaStore.Files.getContentUri("external")
val MediaStoreFileUri: Uri = MediaStore.Files.getContentUri(MediaStore.VOLUME_EXTERNAL)
val MediaProjection = arrayOf(
MediaStore.Files.FileColumns._ID,
MediaStore.Files.FileColumns.BUCKET_ID,
Expand Down

0 comments on commit 585c9bb

Please sign in to comment.