I am trying to implement the new permissions model into my application. I am facing a weird issue. When I request with code i in a fragment, then onRequestPermissionResult of that fragment is not called, instead only the parent activity's onRequestPermissionResult is called with the same request code. This is causing unusual behaviour. I am using v4supportFragment. my min api is 14 and max is 23.
Note: This is not a nested fragment. Also, I have browsed this post of stackoverflow but it is not that helpful.
Request runtime permissions from v4.Fragment and have callback go to Fragment?