tbruyelle / RxPermissions

Android runtime permissions powered by RxJava2
Apache License 2.0
10.48k stars 1.31k forks source link

no prompt bug #271

Open bxxasn opened 5 years ago

bxxasn commented 5 years ago

On the [Xiaomi] phone, if you refuse permission and select [no prompt], then jump to settings with the following gotoSetting () to open permission, then call requestEvery, the accept is granted, but from [settings App], check the permission of the current application, the status is prohibited.

app.gradle 
   compileSdkVersion 26
    buildToolsVersion "26.0.3"
    minSdkVersion 19
    targetSdkVersion 26

private void gotoSetting() { //跳转到设置权限界面 Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); Uri uri = Uri.fromParts("package", getApplicationContext().getPackageName(), null); intent.setData(uri); startActivityForResult(intent, REQ_SETTING); }