trello-archive/RxLifecycle

onRequestPermissionsResult not calling in Fragment

Closed this issue · 1 comments

Hello! Could you please advise a solution to my problem?
I have the following code:

public class MyFragment extends RxFragment

inside fragment i have override method from class Fragment:

`@Override
public void onRequestPermissionsResult(int requestCode, @nonnull String[] permissions, @nonnull int[] grantResults) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults);

    TODO
}`

when i call the following code:

MyFragment.this.requestPermissions(requestedPermissions,
REQUEST_PERMISSION_CODE);

onRequestPermissionsResult in this fragment not calling.

I am sorry, the reason was completely different, the problem has been resolved.