diff --git a/AuthenticatorPro.Droid/src/Activity/BaseActivity.cs b/AuthenticatorPro.Droid/src/Activity/BaseActivity.cs index 4a058d48e7..8ec55ed099 100644 --- a/AuthenticatorPro.Droid/src/Activity/BaseActivity.cs +++ b/AuthenticatorPro.Droid/src/Activity/BaseActivity.cs @@ -278,6 +278,12 @@ public WindowInsetsCompat OnApplyWindowInsets(View view, WindowInsetsCompat inse } var systemBarInsets = insets.GetInsets(WindowInsetsCompat.Type.SystemBars()); + + var layoutParameters = (ViewGroup.MarginLayoutParams) view.LayoutParameters; + layoutParameters.LeftMargin = systemBarInsets.Left; + layoutParameters.RightMargin = systemBarInsets.Right; + view.LayoutParameters = layoutParameters; + OnApplySystemBarInsets(systemBarInsets); _appliedSystemBarInsets = true;