Skip to content

[net11][Android] Temporarily revert native edge-to-edge - #39579

Merged
kubaflo merged 1 commit into
net11.0from
kubaflo-edge-to-edge-rollback
Oct 23, 2026
Merged

kubaflo merged 1 commit into
net11.0from
kubaflo-edge-to-edge-rollback

Conversation

@kubaflo

@kubaflo kubaflo commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

Targets net11.0 intentionally. Temporarily reverts #36226, squash commit 7763a4136e8068120c7a5bf62dfa7a342efd9ef1, while its Android edge-to-edge implementation and corresponding screenshot baselines are prepared together in #39566.

This is the exact inverse of the original ten-file change, with no conflict resolutions or unrelated edits:

  • Restore SetDecorFitsSystemWindows activity initialization and fullscreen WebView transitions.
  • Restore the previous modal system-bar setup, API 30+ window appearance initialization, and maui_edgetoedge_optout theme entries.
  • Remove the two Issue32987 HostApp/NUnit files added by the reverted implementation.

This deliberately restores the earlier Android behavior, including deferring the original transparency, navigation-scrim, and dynamic icon-color improvements until reintroduction. It does not alter screenshots or pipeline configuration. The plan is to stack #39566 on this rollback and reintroduce the implementation with the updated API 30 baselines; this PR does not merge either change.

Validation

Command Result
git diff --cached --check Passed before commit.
diff <(git diff --binary 7763a4136e8068120c7a5bf62dfa7a342efd9ef1 7763a4136e8068120c7a5bf62dfa7a342efd9ef1^) <(git diff --cached --binary) Passed before commit: byte-for-byte inverse of #36226.
xmllint --noout src/Core/src/Platform/Android/Resources/values/attr.xml src/Core/src/Platform/Android/Resources/values/styles-material3.xml src/Core/src/Platform/Android/Resources/values/styles.xml Passed.
dotnet build Microsoft.Maui.BuildTasks.slnf --no-restore --verbosity quiet -p:IncludeIosTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false Passed; zero warnings/errors. A session-local binlog was also recorded.
dotnet build src/Controls/src/Core/Controls.Core.csproj --no-restore --framework net11.0-android37.0 --verbosity quiet Passed; zero warnings/errors. A preceding non-incremental build also passed, with three Gradle Java 8 source/target warnings.

Scoped C# whitespace verification also passed:

dotnet format whitespace Microsoft.Maui.sln --no-restore --exclude Templates/src --include src/Controls/src/Core/Platform/ModalNavigationManager/ModalNavigationManager.Android.cs src/Core/src/Handlers/Window/WindowHandler.Android.cs src/Core/src/Platform/Android/MauiAppCompatActivity.Lifecycle.cs src/Core/src/Platform/Android/MauiAppCompatActivity.cs src/Core/src/Platform/Android/MauiWebChromeClient.cs --verify-no-changes --verbosity quiet

Limits: Local compilation used installed SDK 11.0.100-preview.6.26359.118, not the repository's 11.0.100-rtm.26514.118 pin. Initial no-restore builds needed package assets; after restore, the unrestricted build was blocked by unsupported Apple 27.0 targets on this machine's 26.5 workload. The Android-only prerequisite and targeted Android builds passed without changing repository settings. Android UI/device suites and the CI environment were not validated locally; no claim is made that all CI passes.

Issues Fixed

Reverts #36226.

Follow-up: #39566. Related original issue: #32987, which is not closed by this temporary rollback.

This reverts commit 7763a41 (#36226).

Restore the previous Android system-bar behavior while #39566 prepares the native edge-to-edge implementation together with its updated screenshot baselines.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 39af0031-8c13-4af0-99df-367a03d03792
Copilot AI balanced review requested due to automatic review settings October 22, 2026 22:19
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 22, 2026 22:20 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39579

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39579"

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 22, 2026 22:20 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 22, 2026 22:21 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 22, 2026 22:23 — with GitHub Actions Inactive
kubaflo added a commit that referenced this pull request Oct 22, 2026
Bring rollback PR #39579 into the existing #39566 branch without rewriting its screenshot commit. The original implementation will be reapplied on top.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d79af75a-1980-4a92-8856-8915baf0d11e
kubaflo pushed a commit that referenced this pull request Oct 22, 2026
…lines

Reapply the original implementation, system-bar theme updates, Android resources, and Issue32987 tests from #36226 on top of rollback PR #39579. Keep #39566's existing 1,766 screenshot baseline updates and exclusions unchanged.

(cherry picked from commit 7763a41)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d79af75a-1980-4a92-8856-8915baf0d11e
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 22, 2026 22:25 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 22, 2026 22:25 — with GitHub Actions Inactive

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Android startup, modal, and fullscreen behavior changes need human review because UI/device validation and current CI results remain unverified.

No open issues 🎉

What changed in this PR

Temporarily rolls back Android native edge-to-edge behavior on net11.0 so the implementation and screenshot baselines can be reintroduced together through #39566. The changes align with the stated rollback scope; #32987 remains unresolved intentionally.

Changes:

  • Restore previous activity initialization, fullscreen WebView transitions, and modal system-bar behavior.
  • Restore edge-to-edge opt-out theme entries and remove dynamic system-bar icon refresh handling.
  • Remove the Issue32987 test page and UI tests without changing screenshots or pipelines.
File Description
src/​Core/​src/​Platform/​Android/​Resources/​values/​styles.xml Restore the default theme’s opt-out entry.
src/​Core/​src/​Platform/​Android/​Resources/​values/​styles-material3.xml Restore the Material 3 opt-out entry.
src/​Core/​src/​Platform/​Android/​Resources/​values/​attr.xml Restore the opt-out attribute declaration.
src/​Core/​src/​Platform/​Android/​MauiWebChromeClient.cs Restore fullscreen decor-fitting transitions.
src/​Core/​src/​Platform/​Android/​MauiAppCompatActivity.Lifecycle.cs Remove configuration-change icon refresh.
src/​Core/​src/​Platform/​Android/​MauiAppCompatActivity.cs Restore decor-fitting initialization.
src/​Core/​src/​Handlers/​Window/​WindowHandler.Android.cs Restore API 30+ system-bar initialization.
src/​Controls/​tests/​TestCases.Shared.Tests/​Tests/​Issues/​Issue32987.cs Remove native edge-to-edge UI tests.
src/​Controls/​tests/​TestCases.HostApp/​Issues/​Issue32987.cs Remove the corresponding test page.
src/​Controls/​src/​Core/​Platform/​ModalNavigationManager/​ModalNavigationManager.Android.cs Restore previous modal system-bar setup.

Review effort: Balanced

@kubaflo
kubaflo added this pull request to stack #39580 October 22, 2026 22:28
@kubaflo

kubaflo commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Oct 22, 2026

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Stamping as requested by @kubaflo; no code review performed.

@kubaflo
kubaflo merged commit e9c75a8 into net11.0 Oct 23, 2026
41 of 44 checks passed
@kubaflo
kubaflo deleted the kubaflo-edge-to-edge-rollback branch October 23, 2026 09:53
@github-actions github-actions Bot added this to the .NET 11.0-rc2 milestone Oct 23, 2026
sheiksyedm added a commit to Ahamed-Ali/maui that referenced this pull request Oct 24, 2026
Reintroduce the exact changes from dotnet#36226, temporarily reverted by dotnet#39579, alongside the screenshot cropping fix and updated baselines in dotnet#39545.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 23, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — b6456a1d Deployed Oct 22, 2026 by kubaflo via conclusion #2477
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

s/agent-review-in-progress AI review is currently running for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants