RxPermissions icon indicating copy to clipboard operation
RxPermissions copied to clipboard

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

Open snowf07 opened this issue 4 years ago • 0 comments

    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 {

            }
        }
    });

snowf07 avatar Aug 10 '20 08:08 snowf07