Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refine edge-to-edge handling across screens #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
MihaiCristianCondrea merged 2 commits into main from codex/implement-edge-to-edge-ui-in-compose
Sep 19, 2025

Conversation

@MihaiCristianCondrea
Copy link
Owner

@MihaiCristianCondrea MihaiCristianCondrea commented Sep 19, 2025

Summary

  • refine the edge-to-edge delegate to auto-detect app bars and bottom bars, padding them with system insets while adjusting floating action button margins
  • add a dedicated view tag for storing baseline margins when applying insets
  • replace root margins in the Help screen with padding so its background reaches the system edges

Testing

  • ./gradlew test (fails: SDK location not found)

https://chatgpt.com/codex/tasks/task_e_68cdb3bc4e60832d9d5b0065f1facd28

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

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 suggestions.

Reply with @codex fix comments to fix any unresolved comments.

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, or 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 fix this CI failure" or "@codex address that feedback".

Comment on lines +122 to +129
private static void applyInsetsToFloatingButtons(View view, int insetTypes) {
if (!isVisible(view)) {
return;
}
if (view instanceof ExtendedFloatingActionButton || view instanceof FloatingActionButton) {
applyInsetsAsMargin(view, insetTypes, false, true);
return;
}
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot Sep 19, 2025

Choose a reason for hiding this comment

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

[P1] Apply FAB inset margins regardless of initial visibility

applyInsetsToFloatingButtons bails out when the view is not VISIBLE, so it never attaches the inset listener to FloatingActionButtons that start as INVISIBLE/GONE and are shown later. Those buttons keep their baseline margins and will overlap navigation gesture areas when they become visible, defeating the goal of this delegate. The inset listener should be attached even when the button is hidden so that margins are updated before it is displayed.

Useful? React with 👍 / 👎.

@MihaiCristianCondrea MihaiCristianCondrea merged commit d4fb8c4 into main Sep 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /