Open ail36413 opened 6 months ago
PermissionX.init(this) .permissions( android.Manifest.permission.READ_EXTERNAL_STORAGE, android.Manifest.permission.WRITE_EXTERNAL_STORAGE, ) .request { allGranted, grantedList, deniedList -> Log.e("MainActivity","allGranted1:"+allGranted) } 代码一运行就会打印日志true,权限申请框我都还没点击呢,我点击拒绝无回调,关闭APP重新运行,还是打印true, 经过测试,一打开app就运行权限申请,就会这样,如果是点击按钮去申请,就没这个问题
PermissionX.init(this) .permissions( android.Manifest.permission.READ_EXTERNAL_STORAGE, android.Manifest.permission.WRITE_EXTERNAL_STORAGE, ) .request { allGranted, grantedList, deniedList -> Log.e("MainActivity","allGranted1:"+allGranted) } 代码一运行就会打印日志true,权限申请框我都还没点击呢,我点击拒绝无回调,关闭APP重新运行,还是打印true, 经过测试,一打开app就运行权限申请,就会这样,如果是点击按钮去申请,就没这个问题