-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong position of recyclerview items #49
Comments
@gssinghgautam We'll check it a bit later and return back to you... |
can you please check the error, why its giving wrong position when ads are not visible |
@gssinghgautam I'm also facing same issue when trying to get pos like this https://github.com/clockbyte/admobadapter/wiki/Cookbook#in-case-you-stucked-with-getting-the-correct-itemindex-of-a-source-collection-in-a-listviewrecyclerview-click-handler
|
@aa-contorra hi, thx a lot for your contribution, we will include a fix for the getOriginalContentPosition() according to this issue to the next maven release. KR |
also there is another bug here: while ads loading method getFetchedAdsCount() returns same value as for "no ads loaded" case, but adapter has placeholers with "ad id loading" text, so it's no way to get proper index of clicked element. Also it casuses IndexOfBounds exception in some cases... |
@aa-contorra I'm afraid at the moment you'd change the source of AdapterWrapper class a bit. Add the new method |
the workaround suggested by kot331107 is working fine |
i suppose this is the same ? : Exception java.lang.ArrayIndexOutOfBoundsException: length=36; index=36 |
@aimiliano don't think so. Please open a separate issue for that. |
Guys, I've updated wiki https://github.com/clockbyte/admobadapter/wiki/Cookbook#in-case-you-stucked-with-getting-the-correct-itemindex-of-a-source-collection-in-a-listviewrecyclerview-click-handler Up: also it's now available at maven-central as 1.3.1 |
when ads are not loading in recyclerview the position of the item on click is wrong ..its not giving me the correct value
The text was updated successfully, but these errors were encountered: