Merge pull request #1572 from CatimaLoyalty/fix/newNavigationBarButtonColors

Fix navigation bar button colors
This commit is contained in:
Sylvia van Os
2023-10-12 10:39:12 +02:00
committed by GitHub

View File

@@ -640,7 +640,7 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
binding.bottomAppBar.setBackgroundColor(darkenedColor);
if (Build.VERSION.SDK_INT >= 27) {
WindowInsetsControllerCompat wic = new WindowInsetsControllerCompat(getWindow(), binding.getRoot());
wic.setAppearanceLightNavigationBars(false);
wic.setAppearanceLightNavigationBars(Utils.needsDarkForeground(darkenedColor));
getWindow().setNavigationBarColor(darkenedColor);
}