yanzhenjie / Album

:watermelon: Album and Gallery for Android platform.
https://github.com/yanzhenjie/Album
Apache License 2.0
2.5k stars 507 forks source link

修复权限请求结果判断的问题 #229

Closed fiona0419 closed 6 years ago

fiona0419 commented 6 years ago

点击拍照的时候,拒绝相机权限,应用奔溃,log如下: java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=1, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.wondertek.paper/com.yanzhenjie.album.app.camera.CameraActivity}: java.lang.SecurityException: Permission Denial: starting Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 cmp=com.android.camera2/com.android.camera.CaptureActivity clip={text/uri-list U:content://com.wondertek.paper.app.file.provider/external_path/DCIM/20181103_021338285_dbbf9f288284a23a07e5f6f7111648ce.jpg} (has extras) } from ProcessRecord{21b5305 4814:com.wondertek.paper/u0a89} (pid=4814, uid=10089) with revoked permission android.permission.CAMERA

napQINLAN commented 5 years ago

请问这个问题什么时候修复到正式的版本?

yanzhenjie commented 5 years ago

明后天吧,这两天发布一个修复bug的版本,本来是昨天发布,工作比较忙就没发布。

napQINLAN commented 5 years ago

好的,辛苦。非常感谢。等待发布。