Skip to content

Commit 18a25a7

Browse files
Added comments
1 parent 4cdb502 commit 18a25a7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellItemRenderer.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,10 @@ protected virtual void SetAppearance(ShellAppearance appearance)
142142
return;
143143
}
144144

145-
if (_bottomView.Background is ColorDrawable background && appearance is IShellAppearanceElement apperanceElement)
145+
// Apply background color from appearance, fallback to default if unavailable
146+
if (_bottomView.Background is ColorDrawable background && appearance is IShellAppearanceElement appearanceElement)
146147
{
147-
background.Color = apperanceElement.EffectiveTabBarBackgroundColor?.ToPlatform() ?? ShellRenderer.DefaultBottomNavigationViewBackgroundColor.ToPlatform();
148+
background.Color = appearanceElement.EffectiveTabBarBackgroundColor?.ToPlatform() ?? ShellRenderer.DefaultBottomNavigationViewBackgroundColor.ToPlatform();
148149
}
149150
_appearanceSet = true;
150151
_appearanceTracker.SetAppearance(_bottomView, appearance);

0 commit comments

Comments
 (0)