Skip to content

[Android] SafeAreaEdges break with tab navigation and Shell.TabBarIsVisible="False" #36269

Description

@FinnKr

Description

When using a TabBar with 2 tabs as ShellContent and navigating between them breaks the SafeAreaEdges=All on Android if one page has Shell.TabBarIsVisible="False".

Screen.Recording.2026-07-01.at.10.54.29.mov

Steps to Reproduce

  1. Create a .NET MAUI App with a TabBar navigation and 2 pages
  2. Use SafeAreaEdges="All" on both pages
  3. Disable the TabBar on the first page
  4. Navigate to the second page using a button/programmatically
  5. Go back to the first page using the TabBar
  6. Repeat 2-3 times

Expected result:
Page 1 respects all SafeAreas all the time
Image

Actual result:
Page 1 pushes its content behind the bottom SafeArea after 2 navigations
Image

Link to public reproduction project repository

https://github.com/FinnKr/maui10-android-safeare-repro

Version with bug

10.0.80

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.120 SR12

Affected platforms

Android

Affected platform versions

Android 16

Did you find any workaround?

Calling OnPropertyChanged for SafeAreaEdges will recalculate the SafeArea and "fix" the representation.
For example in OnSizeAllocated:

protected override void OnSizeAllocated(double width, double height)
{
	base.OnSizeAllocated(width, height);
	
	OnPropertyChanged(nameof(SafeAreaEdges));
}

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-safeareaIssues/PRs that have to do with the SafeArea functionalityi/regressionThis issue described a confirmed regression on a currently supported versionpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/androidregressed-in-10.0.70s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions