Skip to content

[net11] [Revert] [Android] Enable native edge-to-edge and fix dynamic system bar icon colors - #39733

Closed
praveenkumarkarunanithi wants to merge 1 commit into
dotnet:net11.0from
praveenkumarkarunanithi:revert-edgetoedge
Closed

praveenkumarkarunanithi wants to merge 1 commit into
dotnet:net11.0from
praveenkumarkarunanithi:revert-edgetoedge

Conversation

@praveenkumarkarunanithi

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

Revert the native Android edge-to-edge implementation from #36226, reintroduced by #39545, because it changes previously working modal keyboard-resize behavior and causes Android UI test failures.

This restores the previous activity and modal window configuration, fullscreen WebView transitions, system-bar initialization, and edge-to-edge opt-out theme entries. The associated Issue32987 sample and tests are removed.

Issues Fixed

Reverts #36226.

Addresses the modal keyboard-resize regression affecting the #27242 test scenario in net 11 branch.

@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 -- 39733

Or

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

@azure-pipelines

This comment has been minimized.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Oct 28, 2026
@praveenkumarkarunanithi praveenkumarkarunanithi added platform/android area-safearea Issues/PRs that have to do with the SafeArea functionality labels Oct 28, 2026
@sheiksyedm

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@NirmalKumarYuvaraj NirmalKumarYuvaraj added the do-not-merge Don't merge this PR label Oct 28, 2026
@kubaflo

This comment has been minimized.

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

MauiBot commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

PR Test Gate

@praveenkumarkarunanithi — existing-test verification for commit 07996141.

Result SKIPPED Platform Android Commit 07996141


🧪 Gate analysis — click to expand

⚠ Skipped. No runnable PR tests were selected. The fix has not been verified by this gate.

No interpretable test-group summary was produced. No additional test execution is inferred.

PR head: 07996141.

Without-fix baseline: 4fdfdf62.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Oct 28, 2026

@github-actions github-actions Bot 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.

Expert Review — 1 finding

Reviewed commit 0799614.

See inline comments for details.

// is always enabled and must not be reverted when exiting fullscreen video.
if (OperatingSystem.IsAndroidVersionAtLeast(30))
{
WindowCompat.SetDecorFitsSystemWindows(context.Window, true);

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.

[major] Logic and Correctness Verification - Exiting fullscreen changes the activity's layout mode instead of restoring it. MauiAppCompatActivity.OnCreate still sets SetDecorFitsSystemWindows(Window, false), but this call and the API 19-29 branch set it to true. On Android 30-34, open and exit a fullscreen WebView video on a page using SafeAreaEdges.None: content that previously extended behind the system bars becomes constrained inside them. Template activities handle orientation changes without recreation, and neither OnConfigurationChanged nor WindowHandler restores the flag, so the layout change persists after playback. Keep the pre-video decor-fitting mode rather than unconditionally enabling it.

@Ahamed-Ali

Ahamed-Ali commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Closed this PR because a revert PR has been created. #39748

@Ahamed-Ali Ahamed-Ali closed this Oct 29, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 07996141 Deployed Oct 28, 2026 by praveenkumarkarunanithi via conclusion #2561
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-safearea Issues/PRs that have to do with the SafeArea functionality do-not-merge Don't merge this PR partner/syncfusion Issues / PR's with Syncfusion collaboration platform/android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants