Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Might fix #91
I was getting this error with a very specific use case within the app. I did this fix before resolving the underlining issue causing it.
I'm not sure what the issue was/ how I was causing it, but for some reason even though the popup was closed tapping anywhere on the screen would trigger HitTest method and then crash.
Its as if the PopupWindow was never getting cleaned up, and just sitting on top of the app.
Originally I just had
return null;
in the catch, but every time I went through this specific use case the number ofPopupWindow
would add up and each tap, would triggerHitTest
x number of times. So added the cleanup code, and all seemed ok after that.I've altered my code since, and I no longer get into the catch, so not sure what I was doing that would of caused it