From 2c152e844787d329e7bb581c479da7ea86f549d3 Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Sat, 11 Mar 2017 16:48:55 +0100 Subject: [PATCH] Override textColorPrimary and not textColor as it conflicts with support libraries (e.g. snackbar text). Further, use textColorPrimary in the graphs instead of textColor. --- .../nodomain/freeyourgadget/gadgetbridge/GBApplication.java | 2 +- app/src/main/res/values/styles.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java index 47dcfff2..82f05c90 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/GBApplication.java @@ -433,7 +433,7 @@ public class GBApplication extends Application { public static int getTextColor(Context context) { TypedValue typedValue = new TypedValue(); Resources.Theme theme = context.getTheme(); - theme.resolveAttribute(android.R.attr.textColor, typedValue, true); + theme.resolveAttribute(android.R.attr.textColorPrimary, typedValue, true); return typedValue.data; } diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index f44e70aa..3c1ab6bd 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -1,7 +1,7 @@