From 427b4d64edf0185599db7eedf1fd04fee1b663b7 Mon Sep 17 00:00:00 2001 From: Sylvia van Os Date: Wed, 7 Sep 2022 21:18:40 +0200 Subject: [PATCH] Revert "[UI] Fix colors on navigationBarColor (#1010)" This reverts commit d0e80f76d6ac6cc8b73410b0a4caef133a927298. --- .../main/java/protect/card_locker/LoyaltyCardViewActivity.java | 2 -- app/src/main/java/protect/card_locker/Utils.java | 1 - 2 files changed, 3 deletions(-) diff --git a/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java b/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java index 4f2097c26..8ae284413 100644 --- a/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java +++ b/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java @@ -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); diff --git a/app/src/main/java/protect/card_locker/Utils.java b/app/src/main/java/protect/card_locker/Utils.java index 97c779e23..892cce2ed 100644 --- a/app/src/main/java/protect/card_locker/Utils.java +++ b/app/src/main/java/protect/card_locker/Utils.java @@ -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) {