Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: last item not visible bug #69

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

anthonyshim
Copy link

馃憦 Resolves

#68

馃専 Description

馃悰 fix

test video : https://youtube.com/shorts/6JCsvgxr10Q?feature=share

馃挱 Other info

@BeksOmega
Copy link
Owner

Thanks for the fix! I'm hoping to review this when I get home from work today. If I don't get to it tonight, I'll definitely get to it during the weekend =)

@BeksOmega BeksOmega changed the base branch from master to develop July 2, 2022 01:54
@BeksOmega BeksOmega changed the base branch from develop to master July 2, 2022 01:54
@BeksOmega
Copy link
Owner

Ok, found time to pull this down and and take a look :D Thank you for putting up this pull request!

Firstly, this fix fails the automated test suite :/ In Android Studio in the "Select a Run/Debug Configuration" dropdown you should see an option called "All Tests" as well as a bunch of other tests suites. If I run "All Tests" on this branch I'm seeing 57 / 132 tests failed.

Secondly, I wasn't able to reproduce the issue you filed to be able to test it. Could you create an automated test that fails on master, and succeeds on your branch so that I can verify the fix?

And lastly, could you rebase this change against the develop branch?

Thank you again for your contribution! I'm excited to get this merged =)

@Maxr1998
Copy link
Contributor

Maxr1998 commented Apr 2, 2023

I believe the idea behind this change is that when you're scrolling and the view re-layouts, this will ensure the offset of the first item is factored in as well.

As an example, we're using looping-layout as a view pager replacement with full-width items and androidx.recyclerview.widget.PagerSnapHelper, and noticed that when you just have two pages, there will initially be some flickering without this fix. I'd need to do more debugging to fully understand this issue, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants