Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Android] Update CurrentItem when swiping #10850

Merged
merged 9 commits into from
May 28, 2020
Merged

[Android] Update CurrentItem when swiping #10850

merged 9 commits into from
May 28, 2020

Conversation

rmarinho
Copy link
Member

@rmarinho rmarinho commented May 26, 2020

Description of Change

A couple of fixes, getting the real centered item. If we were using the PeakAreaInsets there were some times that center item wasn't found since it was using just 1 centered coordiante, it should use both, x and y for CarouselView.
Fix state that was blocking update CurrentItem when swiping. Fix introduced in 4.6.0 to fix scrolling to the item when added was blocking the current item to be update when swiping.

Contains also fix #10838

Issues Resolved

API Changes

None

Platforms Affected

  • Android

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

Testing Procedure

Go to test case 9827, swipe to next item, check the SearchBar text is updated to "Item1 with some additional text"

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@rmarinho rmarinho added this to In Review in CarouselView via automation May 26, 2020
@rmarinho rmarinho added the 4.6.0 regression on 4.6.0 label May 26, 2020
@rmarinho rmarinho changed the title [Android] Update CurrentItem when ScrollingFix 9827 [Android] Update CurrentItem when swiping May 26, 2020
@rmarinho rmarinho requested review from hartez and samhouts May 27, 2020 19:11
@samhouts samhouts added the blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. label May 27, 2020
@samhouts samhouts added this to In progress in Sprint 171 via automation May 27, 2020
@jsuarezruiz
Copy link
Contributor

Tested on Android and iOS:

fix9827-02

Is working as expected.

@rmarinho
Copy link
Member Author

Failing tests not related

Sprint 171 automation moved this from In progress to Ready for Review (PRs) May 28, 2020
@rmarinho rmarinho merged commit 6f0fabe into 4.6.0 May 28, 2020
CarouselView automation moved this from In Review to Done May 28, 2020
Sprint 171 automation moved this from Ready for Review (PRs) to Done May 28, 2020
@rmarinho rmarinho deleted the fix_9827 branch May 28, 2020 14:13
@samhouts samhouts added this to the 4.6.0 milestone Jun 1, 2020
@samhouts samhouts added this to Done in v4.6.0 Jun 20, 2020
@samhouts samhouts removed this from Done in CarouselView Jun 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4.6.0 regression on 4.6.0 a/carouselview blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. t/bug 🐛
Projects
No open projects
Sprint 171
  
Done
v4.6.0
  
Done
3 participants