From c0d1b446d1549e8c6874948a56aeca9b6d13291b Mon Sep 17 00:00:00 2001 From: Sylvia van Os Date: Mon, 16 Dec 2019 13:23:16 +0100 Subject: [PATCH] Make same text and header color at least slightly visible --- .../java/protect/card_locker/LoyaltyCardViewActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java b/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java index 8de96f898..65b54000f 100644 --- a/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java +++ b/app/src/main/java/protect/card_locker/LoyaltyCardViewActivity.java @@ -7,7 +7,6 @@ import android.graphics.Color; import android.graphics.drawable.Drawable; import android.os.Build; import android.os.Bundle; -import android.support.v4.content.ContextCompat; import android.support.v4.graphics.ColorUtils; import android.support.v4.graphics.drawable.DrawableCompat; import android.support.v4.widget.TextViewCompat; @@ -200,6 +199,9 @@ public class LoyaltyCardViewActivity extends AppCompatActivity // Make notification area light if dark icons are needed window.getDecorView().setSystemUiVisibility(backgroundNeedsDarkIcons ? View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR : 0); + // 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); + if(format != null) { findViewById(R.id.barcode).setVisibility(View.VISIBLE);