@ -81,7 +81,7 @@ namespace Avalonia.Android.Platform
var renderScaling = _ topLevel . RenderScaling ;
var renderScaling = _ topLevel . RenderScaling ;
var inset = insets . GetInsets (
var inset = insets . GetInsets (
( D isplayEdgeToEdge ?
( _d isplayEdgeToEdge ?
WindowInsetsCompat . Type . StatusBars ( ) | WindowInsetsCompat . Type . NavigationBars ( ) |
WindowInsetsCompat . Type . StatusBars ( ) | WindowInsetsCompat . Type . NavigationBars ( ) |
WindowInsetsCompat . Type . DisplayCutout ( ) :
WindowInsetsCompat . Type . DisplayCutout ( ) :
0 ) | WindowInsetsCompat . Type . Ime ( ) ) ;
0 ) | WindowInsetsCompat . Type . Ime ( ) ) ;
@ -91,8 +91,8 @@ namespace Avalonia.Android.Platform
return new Thickness ( inset . Left / renderScaling ,
return new Thickness ( inset . Left / renderScaling ,
inset . Top / renderScaling ,
inset . Top / renderScaling ,
inset . Right / renderScaling ,
inset . Right / renderScaling ,
( imeInset . Bottom > 0 & & ( ( _ usesLegacyLayouts & & ! D isplayEdgeToEdge) | | ! _ usesLegacyLayouts ) ?
( imeInset . Bottom > 0 & & ( ( _ usesLegacyLayouts & & ! _d isplayEdgeToEdge ) | | ! _ usesLegacyLayouts ) ?
imeInset . Bottom - navBarInset . Bottom :
imeInset . Bottom - ( _d isplayEdgeToEdge ? 0 : navBarInset . Bottom ) :
inset . Bottom ) / renderScaling ) ;
inset . Bottom ) / renderScaling ) ;
}
}