tbruyelle/RxPermissions

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

snowf07 opened this issue · 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 {

            }
        }
    });