Permissionsdispatcher: Entire class has warning "Generated onRequestPermissionsResult method not called"

Created on 7 Apr 2016  ·  8Comments  ·  Source: permissions-dispatcher/PermissionsDispatcher

I get my whole class underlined in red with this warning:

"Generated onRequestPermissionsResult method not called [NeedOnRequestPermissionsResult]"

My code is fine. It compiles and runs but the editor warning keeps showing also on every class nested in a fragment or activity. Could you please fix it as I can't see my own real errors :D.

Most helpful comment

Cool. That is what I wanna know! I will send pull request with this change to fix this issue. Sorry for inconvenience.

Since it may take time to release v2.1.2, you can use following code to disable this lint in v2.1.1 (or any of version)

android {
      lintOptions {
          disable 'NeedOnRequestPermissionsResult'
      }
}

Thanks a lot.

All 8 comments

What version do you use?
And this issue is discussed in https://github.com/hotchemi/PermissionsDispatcher/issues/124

Yes, appears to be the same issue. Using 2.1.0, but after upgrading to 2.1.1 it shows up again. I haven't try clean rebuild and Invalidate Caches because the project is quite large.

You should try, why not?

Migration to 2.1.1 + Clean Rebuild + Invalidate Caches And Restart didn't fix it :S Do you know how can I disable that particular warning from Lint config?

@shiraji With your changeset it works fine. :+1:

Cool. That is what I wanna know! I will send pull request with this change to fix this issue. Sorry for inconvenience.

Since it may take time to release v2.1.2, you can use following code to disable this lint in v2.1.1 (or any of version)

android {
      lintOptions {
          disable 'NeedOnRequestPermissionsResult'
      }
}

Thanks a lot.

oh my god,it tooks me a lot of time to fix this probleam.

Was this page helpful?
0 / 5 - 0 ratings