Open helloqxy opened 2 years ago
所以你是具体做了什么适配到了Android13了
所以你是具体做了什么适配到了Android13了
val permission = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { listOf(Manifest.permission.READ_MEDIA_IMAGES, Manifest.permission.READ_MEDIA_VIDEO) } else { listOf(Manifest.permission.WRITE_EXTERNAL_STORAGE) }
所以你是具体做了什么适配到了Android13了
val permission = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { listOf(Manifest.permission.READ_MEDIA_IMAGES, Manifest.permission.READ_MEDIA_VIDEO) } else { listOf(Manifest.permission.WRITE_EXTERNAL_STORAGE) }
拍照还是不行吧,接入后,选择拍照还是会挂掉
targetSdkVersion 33后整个选择图片页面空白。