Open snowf07 opened 4 years ago
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 { } } });