Skip to content

Commit 514b577

Browse files
phunkelerne0rrmatrixTheCodeTraveler
authored
[MediaElement][Android][API < 30] Fix System Bar After Transition From Fullscreen (#2652)
Do 'setDecorFitsSystemWindows' after restoring 'SystemUiFlags' Co-authored-by: James Crutchley <[email protected]> Co-authored-by: Brandon Minnick <[email protected]>
1 parent c36e2ea commit 514b577

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CommunityToolkit.Maui.MediaElement/Views/MauiMediaElement.android.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ void SetSystemBarsVisibility()
180180
}
181181
else
182182
{
183-
WindowCompat.SetDecorFitsSystemWindows(currentWindow, true);
184183
if (OperatingSystem.IsAndroidVersionAtLeast(30))
185184
{
186185
if (isSystemBarVisible)
@@ -195,6 +194,7 @@ void SetSystemBarsVisibility()
195194

196195
windowInsetsControllerCompat.Show(barTypes);
197196
windowInsetsControllerCompat.SystemBarsBehavior = WindowInsetsControllerCompat.BehaviorDefault;
197+
WindowCompat.SetDecorFitsSystemWindows(currentWindow, true);
198198
}
199199
}
200200

0 commit comments

Comments
 (0)