-
Notifications
You must be signed in to change notification settings - Fork 672
Conversation
why always check failed ? I just add one line code |
Hey @lzdon I'm taking a look at the failing test and I'd say the test is incomplete as it stands right now, looks like we are not setting what to do in
and therefore it's returning 0 (default value), however, by the name of the test I'd say it should return @ -132,6 +129,7 @@ import static org.mockito.Mockito.when;
}
@Test public void onPermissionFailedByRuntimeExceptionThenNotifiesListener() {
+ givenPermissionIsChecked(ANY_PERMISSION, PackageManager.PERMISSION_DENIED);
givenARuntimeExceptionIsThrownWhenPermissionIsChecked(ANY_PERMISSION);
givenShouldShowRationaleForPermission(ANY_PERMISSION); |
#197 Unfortunately I just tested this locally and still see LeakCanary indicating the listener leaks the activity. I was able to reproduce by adding LeakCanary to the Dexter sample and rotating once the permissions dialog was shown. My suspicion is it's related to Multiple-Permissions |
Do you have the hprof file? I've been testing for a while and I can't reproduce the issue, what's more, at first LeakCanary detected something but in the end it just reported that |
I do have the additional details and can reproduce consistently. Steps to reproduce:
Eventually, the LeakCanary notification comes through Here's the leak:
|
@Serchinastico is there anything else that you need on my end? |
is there any updates for this memory leak issue? |
Not really, I tested it several times but results weren't consistent and I want to make sure we get rid of the issue for once |
Ok, so it looks like there is a leak in
I'm including some other pending PRs with non backwards compatible changes to next version so expect to see these changes in v5.0.0 Thank you all for your feedback and collaboration 👏 |
Continues in #210 |
sorry , i forgot validation