Revert "[UI] Fix colors on navigationBarColor (#1010)"

This reverts commit d0e80f76d6.
This commit is contained in:
Sylvia van Os
2022-09-07 21:18:40 +02:00
committed by GitHub
parent 41995b5bdd
commit 427b4d64ed
2 changed files with 0 additions and 3 deletions

View File

@@ -669,8 +669,6 @@ public class LoyaltyCardViewActivity extends CatimaAppCompatActivity implements
// Darken statusbar if icons won't be visible otherwise
window.setStatusBarColor(backgroundNeedsDarkIcons ? ColorUtils.blendARGB(backgroundHeaderColor, Color.BLACK, 0.15f) : Color.TRANSPARENT);
}
// Set darkenedColor like color on NavigationBar
window.setNavigationBarColor(darkenedColor);
// Set shadow colour of store text so even same color on same color would be readable
storeName.setShadowLayer(1, 1, 1, backgroundNeedsDarkIcons ? Color.BLACK : Color.WHITE);

View File

@@ -495,7 +495,6 @@ public class Utils {
TypedValue typedValue = new TypedValue();
activity.getTheme().resolveAttribute(android.R.attr.colorBackground, typedValue, true);
activity.findViewById(android.R.id.content).setBackgroundColor(typedValue.data);
activity.getWindow().setNavigationBarColor(typedValue.data);
}
public static void updateMenuCardDetailsButtonState(MenuItem item, boolean currentlyExpanded) {