Skip to content

Conversation

MihaiCristianCondrea
Copy link
Owner

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;
}

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant