Skip to content

Commit

Permalink
Replace intent type to intent data in open()
Browse files Browse the repository at this point in the history
  • Loading branch information
natsuk4ze committed Jul 27, 2023
1 parent 60e8779 commit c2f83c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private void open() {
Context context = pluginBinding.getApplicationContext();
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setType("image/*");
intent.setData(IMAGE_URI);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
}
Expand Down

0 comments on commit c2f83c3

Please sign in to comment.