onRequestPermissionsResult not being called in fragment if defined in both fragment and activity

前端 未结 15 1332
余生分开走
余生分开走 2020-11-28 22:14

I have a fragment in which I have recyclerview and setting data in this recyclerview using recyclerview adapter.

Now, I am having a button in the adapter\'s list ite

15条回答
  •  清酒与你
    2020-11-28 22:44

    This issue was actually being caused by NestedFragments. Basically most fragments we have extend a HostedFragment which in turn extends a CompatFragment. Having these nested fragments caused issues which eventually were solved by another developer on the project.

    He was doing some low level stuff like bit switching to get this working so I'm not too sure of the actual final solution

提交回复
热议问题