Open fierce-bunny opened 3 years ago
I have the same issue. Were you able to solve this?
@andreii-sp Nope, just stopped using the lib in favour of another solution.
If you press the home button when applying for permission, you will not be able to apply for permission when re-entering the APP
If you press the home button when applying for permission, you will not be able to apply for permission when re-entering the APP.
modify:void onRequestPermissionsResult(String[] permissions, int[] grantResults, boolean[] shouldShowRequestPermissionRationale) {
if (permissions == null || permissions.length == 0) {
for (String key : mSubjects.keySet()) {
mSubjects.get(key).onNext(new Permission(key, false, shouldShowRequestPermissionRationale(key)));
mSubjects.get(key).onComplete();
}
mSubjects.clear();
return;
}
for (int i = 0, size = permissions.length; i < size; i++) {
MyLogger.d("onRequestPermissionsResult " + permissions[i]);
// Find the corresponding subject
PublishSubject
Hi! I may be doing something wrong but
rxPermissions.ensureEach()
(or any other RxPermissions method) doesn't emit any event if I click "deny" or "deny & don't ask again" on a permission dialog. The permission dialog is not shown after that when I click the button again. Though it is shown after resubscribing. ThanksAndroid 10
Lib Version
0.12