-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@OnPermissionDenied and @OnNeverAskAgain not working properly #57
Comments
No, specification of the library is not such. |
Yeah, as @hotchemi said, your example would trigger these callbacks for a permission request that asks for ALL of these permissions at once. It would be ambiguous to the code generator if it were an "any-of" relationship, since there would be cases where it didn't know which callback to connect to the @NeedsPermission call. |
We can have another annotation for this case or another parameter that will determine the behavior of the code generator |
@sibeliusseraphini We have no plan to do that. Why do you need it? |
My use case is this: My app will only work if the user enable all 3 permissions that my app needs. We could have a default method for OnPermissionDenied and NeverAskAgain This will reduce some boilerplate code @hotchemi thanks for this great library, I think we should have more annotated library like this to reduce boilerplate code in android and java in general |
In this case, why don't you specify a |
@aurae thank, I will try that |
I had a small doubt regarding chaining permissions. I have a method with |
When I try to use @OnPermisionDenied like this:
It doesn't generate the correct code, and not even reference my method from PermissionDispatcher.
The behavior that I expected is to call showDeniedMessage for any of these permissions.
The same happens for @OnNeverAskAgain
I will try to work on this tomorrow
The text was updated successfully, but these errors were encountered: