Giter Club home page Giter Club logo

Comments (4)

afkT avatar afkT commented on May 21, 2024

你好,你这个禁止显示是禁止什么操作,没有发现这个情况呢

from devutils.

zhushenwudi avatar zhushenwudi commented on May 21, 2024

就是deny再次跳出permission,如果想要清空已拒绝的权限记录的话,按照issue中的代码,会new一个task然后跳到PermissionActivity.class,但在测试上看到的效果只是闪了一下屏幕。callback中还是deny,我也不知道是我没有明白你这个刷新权限改变处理的含义,还是代码方面应该改变。
我自己的理解是,如果拒绝再次弹出权限窗口后,如果想要使用对应权限的功能,需要友好的提示用户手动前往设置中修改。

Uri packageURI = Uri.parse("package:" + AppUtils.getPackageName());
Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS, packageURI);
context.startActivity(intent);

这部分的话可以跳转到设置

from devutils.

afkT avatar afkT commented on May 21, 2024

嗯,我明白你的意思了, 目前是需要自己在 onDenied 回调里面调用 PermissionUtils.shouldShowRequestPermissionRationale 判断是否被拒绝,用户决定跳转或者 Dialog 提示等,我可以加一个参数, 控制是否跳转到应用设置页面去(默认 false),这样用户拒绝权限,则直接跳转到应用设置页面

关于 notifyPermissionsChange 刷新权限改变处理 ( 清空已拒绝的权限记录 ) 这个方法主要是清空已拒绝的权限记录 ( 内部节省判断操作 ), 并非清空系统拒绝的权限

将会在下个版本 ( 两天内 ) 增加该可配选项跳转应用设置页

from devutils.

zhushenwudi avatar zhushenwudi commented on May 21, 2024

好的,感谢

from devutils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.