RxPermissions
RxPermissions copied to clipboard
Why did the app return false when it was installed for the first time, and no permission was applied
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 {
}
}
});