Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Why did the app return false when it was installed for the first time, and no permission was applied #330

Open
snowf07 opened this issue Aug 10, 2020 · 0 comments

Comments

@snowf07
Copy link

snowf07 commented Aug 10, 2020

    RxPermissions rxPermissions=new RxPermissions(this);

    rxPermissions.shouldShowRequestPermissionRationale(this,type).subscribe(new Consumer<Boolean>() {
        @Override
        public void accept(Boolean aBoolean) throws Exception {
            if(!aBoolean){
                Intent intent=new Intent(PrivacyHomeActivity.this,PrivacyHomeDetailsActivity.class);
                intent.putExtra("permissionType",type);
                startActivity(intent);
            }else {

            }
        }
    });
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant