Fixed
Status Update
Comments
vi...@google.com <vi...@google.com>
lu...@google.com <lu...@google.com>
lu...@google.com <lu...@google.com> #2
Hi, thanks for the bug, and the sample application. The fix for this will be included in 4.2 Canary 4
Description
Version of Gradle Plugin:
Version of Gradle:
Version of Java:
OS:
Android Studio 4.0 Beta 2
Build #AI-193.6494.35.40.6254973, built on March 3, 2020
Runtime version: 1.8.0_242-release-1644-b01 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 7916M
Cores: 12
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: String Manipulation, org.jetbrains.kotlin, com.github.novotnyr.gitlab-quickmr-idea-plugin, com.mistamek.drawablepreview.drawable-preview, ignaciotcrespo.github.com.vector-drawable-thumbnails
Steps to Reproduce:
1. Have these colors in res/values-night/colors.xml:
<resources>
<color name="colorPrimary">#f00</color>
<color name="colorPrimaryDark">@color/colorPrimary</color>
<color name="colorAccent">#03DAC5</color>
</resources>
The bug is that the preview of colorPrimaryDark is not the one of colorPrimary here (meaning red color), but of a different place (of the res/values/colors.xml file).