canelmas / let

Annotation based simple API flavored with AOP to handle new Android runtime permission model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Let will only execute the annotated method the second time it's called

2hamed opened this issue · comments

I'm having this problem with that the annotated method is only executed the second time it's called.
What I mean is that upon the first call to the annotated method the permission dialog is shown correctly but after tapping on Allow the actual method is not executed. I have to rerun the activity for it to actually run.

OK, my bad. I was forgetting to put the following piece.

@Override
    public void onRequestPermissionsResult(int requestCode,
                                           @NonNull String[] permissions,
                                           @NonNull int[] grantResults) {
        Let.handle(this, requestCode, permissions, grantResults);
    }