Skip to content

Update AndroidPredictiveBackNavDecorator to handle its back animation#2637

Merged
stagg merged 3 commits intomainfrom
j-android-gesture-fixes
Apr 13, 2026
Merged

Update AndroidPredictiveBackNavDecorator to handle its back animation#2637
stagg merged 3 commits intomainfrom
j-android-gesture-fixes

Conversation

@stagg
Copy link
Copy Markdown
Collaborator

@stagg stagg commented Mar 31, 2026

  • Use None for the backwards AnimatedContent transition spec to avoid any collision with the predictive back
    • Reimplementing it on the content directly
  • Added some animation for the elevation and corner radius of the "shared element" style predictive back
  • Fully reset the state on back cancel
Screen_recording_20260331_150345.mp4

@stagg stagg marked this pull request as ready for review March 31, 2026 23:33
@stagg stagg requested a review from ZacSweers March 31, 2026 23:33
@ZacSweers
Copy link
Copy Markdown
Collaborator

@stagg anything else needed for this?

@stagg
Copy link
Copy Markdown
Collaborator Author

stagg commented Apr 13, 2026

Not a fan of how the animations were completely ignoring the transition spec, so removed them. So the core race condition still exists. Think I might need to dig into a custom AnimatedContent for all this to cooperate correctly.

@stagg stagg added this pull request to the merge queue Apr 13, 2026
Merged via the queue into main with commit c0404ff Apr 13, 2026
5 checks passed
@stagg stagg deleted the j-android-gesture-fixes branch April 13, 2026 20:31
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.

2 participants