Skip to content

fix(android): re-apply edge-to-edge system bar style on appearance change - #11418

Open
NathanWalker wants to merge 2 commits into
mainfrom
fix/android-edge-to-edge-appearance
Open

NathanWalker wants to merge 2 commits into
mainfrom
fix/android-edge-to-edge-appearance

Conversation

@NathanWalker

Copy link
Copy Markdown
Contributor

Core enables edge-to-edge once, in onActivityCreated, with the auto system bar style. The activity survives a dark-mode switch (uiMode is a handled configuration change), so the status and navigation bar icons keep the appearance chosen for the previous theme: dark icons over the app's dark canvas after switching to night mode.

Adds Utils.android.refreshEdgeToEdge(activity), which re-applies the activity's styling with any colors or handler registered through the existing setters, and call it from the Android application when the system appearance changes.

…ange

Core enables edge-to-edge once, in onActivityCreated, with the auto system
bar style. The activity survives a dark-mode switch (uiMode is a handled
configuration change), so the status and navigation bar icons keep the
appearance chosen for the previous theme: dark icons over the app's dark
canvas after switching to night mode.

Add `refreshEdgeToEdge`, which re-applies the activity's styling with any
colors or handler registered through the existing setters, and call it
from the Android application when the system appearance changes.
@nx-cloud

nx-cloud Bot commented Sep 5, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit a20cf52

Command Status Duration Result
nx test apps-automated -c=android ✅ Succeeded 3m 39s View ↗
nx run-many --target=test --configuration=ci --... ✅ Succeeded <1s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-09-05 17:26:24 UTC

@pkg-pr-new

pkg-pr-new Bot commented Sep 5, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@nativescript/core@11418
npm i https://pkg.pr.new/@nativescript/vite@11418
npm i https://pkg.pr.new/@nativescript/webpack@11418

commit: a20cf52

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