Skip to content

Native navigation runtime shell - #23

Merged
pschildgen87-code merged 9 commits into
compat/android-6-api23from
feature/native-navigation-runtime
Sep 18, 2026
Merged

pschildgen87-code merged 9 commits into
compat/android-6-api23from
feature/native-navigation-runtime

Conversation

@pschildgen87-code

Copy link
Copy Markdown
Collaborator

Adds real native Top Bar, Sidebar, Bottom Tabs and Contextual Toolbar support. Sidebar and Bottom Tabs share trusted profile-defined navigation destinations, Contextual Toolbar provides Back/Home/Reload/Forward, and native surfaces reserve WebView layout space. Includes pure-Java menu parsing/URL resolution tests and keeps Android 6/API 23 compatibility.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 18, 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-18T09:14:42.932114Z 86f9869 PR opened
🔒 Security Review ✅ Completed 2026-09-18T09:11:48.840314Z 86f9869 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.

@pschildgen87-code
pschildgen87-code merged commit 2be783a into compat/android-6-api23 Sep 18, 2026
3 checks passed

@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: 86f9869c9c

ℹ️ 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".


private void applyContentInsets() {
FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) content.getLayoutParams();
params.topMargin = topEnabled ? dp(TOP_BAR_DP) : 0;

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 Reserve space for the sidebar-only launcher

When SIDEBAR_NAVIGATION_ENABLED is true and TOP_NAVIGATION_ENABLED is false, buildTopBar() displays the 48dp launcher but this leaves the content's top margin at zero. The launcher consequently covers and intercepts taps on the WebView's top-left content; reserve space for the standalone launcher or place it in a non-overlaid bar.

Useful? React with 👍 / 👎.

Comment on lines +345 to +346
if (nativeNavigation != null && webView != null) {
nativeNavigation.updateHistoryState(webView.getUrl());

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 Update native history controls for same-document navigation

The navigation state is refreshed only from onPageReady(), which is driven by WebViewClient.onPageFinished(). Routes changed through history.pushState, replaceState, or same-document navigation do not reliably finish a page load, so SPA navigation can leave Back disabled and the selected bottom tab stale even though the WebView history and URL have changed; propagate doUpdateVisitedHistory or an equivalent route-change callback to updateHistoryState().

Useful? React with 👍 / 👎.

Comment on lines +293 to +296
private TextView actionText(String label, int widthDp) {
TextView view = new TextView(context);
view.setText(label);
view.setTextColor(foregroundColor);

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 Provide semantic labels for icon-only navigation actions

When TalkBack or another accessibility service is enabled, these controls expose only Unicode glyphs such as ‹, ⌂, and ↻, so they are announced as punctuation or symbol names rather than Back, Home, and Reload. Pass a semantic accessibility label for each icon action and set it as the content description so users can identify the native navigation controls.

Useful? React with 👍 / 👎.

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