Skip to content

refactor(android): simplify predictive back navigation - #2485

Merged
Tlaster merged 1 commit into
masterfrom
feature/simplify-android-predictive-back
Sep 4, 2026
Merged

refactor(android): simplify predictive back navigation#2485
Tlaster merged 1 commit into
masterfrom
feature/simplify-android-predictive-back

Conversation

@Tlaster

@Tlaster Tlaster commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-04T06:28:55.644910Z 85118ba PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 85118ba766

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

) {
androidPredictiveBackHoldTransition(
predictiveBackMotionState.transitionHoldDurationMillis,
modifier = modifier,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep NavDisplay transitions clipped to their pane

When the router is hosted beside a navigation rail or as a 360dp deck column, removing clipToBounds() lets the translated or scaled AnimatedContent draw over adjacent UI during navigation. The entry decorator does not replace parent clipping because it clips each entry before the transition transform, and it is disabled entirely on big screens; the existing NavigationSuiteScaffold2Test.navigationTransitionDoesNotDrawOverNavigationRail covers this scenario. Restore clipping on the NavDisplay modifier, which still leaves overlay scenes outside those bounds.

Useful? React with 👍 / 👎.

Comment on lines +404 to +405
1f at ANDROID_NAVIGATION_EXIT_FADE_START_MILLIS using LinearEasing
0f at ANDROID_NAVIGATION_EXIT_FADE_END_MILLIS

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve predictive-back-specific fade timing

During an interactive predictive-back gesture, Navigation3 seeks this 450ms animation from the gesture progress. Reusing the ordinary close-transition keyframes makes the outgoing page fade from opaque to invisible between 35ms and 118ms—about 8% to 26% progress—while its scale and slide continue through the rest of the gesture. This causes the foreground page to disappear near the start of a slow swipe; retain predictive-specific timing so the fade occurs near gesture completion.

Useful? React with 👍 / 👎.

@Tlaster
Tlaster merged commit f321262 into master Sep 4, 2026
7 of 8 checks passed
@Tlaster
Tlaster deleted the feature/simplify-android-predictive-back branch September 4, 2026 07:37
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.

1 participant