Skip to content

Commit

Permalink
Fix open() in Android 23
Browse files Browse the repository at this point in the history
  • Loading branch information
natsuk4ze committed Aug 3, 2023
1 parent d040d78 commit c149abb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private void open() {
Context context = pluginBinding.getApplicationContext();
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
if (Build.VERSION.SDK_INT < 23) {
if (USE_EXTERNAL_STORAGE) {
intent.setType("*/*");
intent.putExtra(Intent.EXTRA_MIME_TYPES, new String[] {"image/*", "video/*"});
} else {
Expand Down

0 comments on commit c149abb

Please sign in to comment.