Skip to content

Fix ViewPager2 crash during tab transitions (#8144) - #9883

Open
insaneodyssey26 wants to merge 1 commit into
duckduckgo:developfrom
insaneodyssey26:fix/8144-viewpager2-layout-transition-crash
Open

insaneodyssey26 wants to merge 1 commit into
duckduckgo:developfrom
insaneodyssey26:fix/8144-viewpager2-layout-transition-crash

Conversation

@insaneodyssey26

Copy link
Copy Markdown

Description

Removes android:animateLayoutChanges="true" from the browser tab FrameLayout container in fragment_browser_tab.xml.

Inside ViewPager2, child layout hierarchy transitions conflict with ongoing scroll/paging animations, triggering an IllegalStateException from ScrollEventAdapter.updateScrollEventValues.

Fixes #8144

Steps to test / QA

  1. Open multiple tabs in the browser.
  2. Rapidly switch between tabs and load different web pages / error states.
  3. Verify tab transitions remain smooth without crashes or visual glitches.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

This branch has not been deployed

No deployments
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.

[Bug] Crash when switching tabs in ViewPager2 due to LayoutTransition conflict

1 participant