Merge branch 'v1.5.0/dev' into v1.5.0/optimize
This commit is contained in:
@@ -128,7 +128,7 @@ public class PreviewPhotosAdapter extends RecyclerView.Adapter<PreviewPhotosAdap
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
||||
intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
|
||||
intent.putExtra(Intent.EXTRA_STREAM, uri);
|
||||
}
|
||||
intent.setDataAndType(uri, type);
|
||||
context.startActivity(intent);
|
||||
|
Reference in New Issue
Block a user