I'm currently using ContextCompat.getColor
, however it's not fetching the correct colour. When the app is adhering to the night resource qualifier, ContextCompat fetches the color from values/colors.xml
and not values-night/colors.xml
.
I've tried apporaches like this https://stackoverflow.com/a/13952929/333733 using a theme with one residing in values/styles.xml
and values-night/styles.xml
but it seems the color is precompiled using the resource folder without the -night
qualifier.