Fix navigation bar button colors

This commit is contained in:
Sylvia van Os
2023-10-11 21:23:54 +02:00
parent ffd2eccdbe
commit 4c26434f41

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);
}