Skip to content

Commit 961f00f

Browse files
Fix modal page push in immersive mode (#19903)
* Fix modal page push in immersive mode * Change GetInsetsIgnoringVisibility to GetInsets * Revert "Fix modal page push in immersive mode" This reverts commit a2526ea.
1 parent 76e9f74 commit 961f00f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controls/src/Core/Platform/ModalNavigationManager/ModalNavigationManager.Android.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ void UpdateMargin()
327327
var windowInsets = ViewCompat.GetRootWindowInsets(decorView);
328328
if (windowInsets is not null)
329329
{
330-
var barInsets = windowInsets.GetInsetsIgnoringVisibility(WindowInsetsCompat.Type.SystemBars());
330+
var barInsets = windowInsets.GetInsets(WindowInsetsCompat.Type.SystemBars());
331331

332332
if (mlp.TopMargin != barInsets.Top)
333333
mlp.TopMargin = barInsets.Top;

0 commit comments

Comments
 (0)