Fix crash toggling incognito in Android horizontal tab switcher while scrolling
In https://chromium-review.googlesource.com/c/1096489/, I added this line to NonOverlappingStack#runSwitchAwayAnimation() to fix another bug (tabs getting stuck in a partially-discarded state): startAnimation(0, OverviewAnimationType.UNDISCARD); It turns out that if this is called while the tabs are scrolling, StackScroller subtracts the scroller start time from 0 and ends up looking up a negative value in the SPLINE_POSITION array. This CL fixes this crash by passing the correct time here. Bug: 852995,831359 Change-Id: I0186cb9180ef4fff84bf1440acdfd87bc63c47f2 Reviewed-on: https://chromium-review.googlesource.com/1101906Reviewed-by:Matthew Jones <mdjones@chromium.org> Commit-Queue: Ryan Landay <rlanday@chromium.org> Cr-Commit-Position: refs/heads/master@{#567464}
Showing
Please register or sign in to comment