Fix color checking error of the repohooks

Bug: 210353709
Test: repo upload
Change-Id: Ib0926751a29c30da26afeb0eaa7464eccec00280
This commit is contained in:
menghanli
2022-01-13 11:28:38 +08:00
parent a1c550650b
commit 9fd21d5853

View File

@@ -13,6 +13,38 @@
file="."/> file="."/>
</issue> </issue>
<issue
id="HardCodedColor"
severity="Error"
message="Avoid using hardcoded color"
category="Correctness"
priority="4"
summary="Using hardcoded color"
explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.&#xA;This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app."
errorLine1=" &lt;solid android:color=&quot;#BCEDDF&quot;/>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="res/drawable/accessibility_qs_tooltips_background.xml"
line="22"
column="20"/>
</issue>
<issue
id="HardCodedColor"
severity="Error"
message="Avoid using hardcoded color"
category="Correctness"
priority="4"
summary="Using hardcoded color"
explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.&#xA;This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app."
errorLine1=" &lt;solid android:color=&quot;#BCEDDF&quot;/>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="res/drawable/accessibility_qs_tooltips_background.xml"
line="35"
column="20"/>
</issue>
<issue <issue
id="HardCodedColor" id="HardCodedColor"
severity="Error" severity="Error"
@@ -2957,6 +2989,22 @@
column="13"/> column="13"/>
</issue> </issue>
<issue
id="HardCodedColor"
severity="Error"
message="Avoid using hardcoded color"
category="Correctness"
priority="4"
summary="Using hardcoded color"
explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.&#xA;This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app."
errorLine1=" android:color=&quot;@color/accessibility_feature_background&quot;/>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="res/drawable/ic_adaptive_font_download.xml"
line="23"
column="13"/>
</issue>
<issue <issue
id="HardCodedColor" id="HardCodedColor"
severity="Error" severity="Error"
@@ -3213,22 +3261,6 @@
column="13"/> column="13"/>
</issue> </issue>
<issue
id="HardCodedColor"
severity="Error"
message="Avoid using hardcoded color"
category="Correctness"
priority="4"
summary="Using hardcoded color"
explanation="Hardcoded color values are bad because theme changes cannot be uniformly applied.Instead use the theme specific colors such as `?android:attr/textColorPrimary` in attributes.&#xA;This ensures that a theme change from a light to a dark theme can be uniformlyapplied across the app."
errorLine1=" android:color=&quot;@color/accessibility_feature_background&quot;/>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="res/drawable/ic_adaptive_font_download.xml"
line="23"
column="13"/>
</issue>
<issue <issue
id="HardCodedColor" id="HardCodedColor"
severity="Error" severity="Error"
@@ -4633,7 +4665,7 @@
errorLine2=" ~~~~~~~~~~~~~~~~~~~"> errorLine2=" ~~~~~~~~~~~~~~~~~~~">
<location <location
file="res/values-en-rAU/strings.xml" file="res/values-en-rAU/strings.xml"
line="3092" line="3104"
column="64"/> column="64"/>
</issue> </issue>
@@ -4649,7 +4681,7 @@
errorLine2=" ~~~~~~~~~~~~~~~~~~~"> errorLine2=" ~~~~~~~~~~~~~~~~~~~">
<location <location
file="res/values-en-rCA/strings.xml" file="res/values-en-rCA/strings.xml"
line="3092" line="3104"
column="64"/> column="64"/>
</issue> </issue>
@@ -4665,7 +4697,7 @@
errorLine2=" ~~~~~~~~~~~~~~~~~~~"> errorLine2=" ~~~~~~~~~~~~~~~~~~~">
<location <location
file="res/values-en-rGB/strings.xml" file="res/values-en-rGB/strings.xml"
line="3092" line="3104"
column="64"/> column="64"/>
</issue> </issue>
@@ -4681,7 +4713,7 @@
errorLine2=" ~~~~~~~~~~~~~~~~~~~"> errorLine2=" ~~~~~~~~~~~~~~~~~~~">
<location <location
file="res/values-en-rIN/strings.xml" file="res/values-en-rIN/strings.xml"
line="3092" line="3104"
column="64"/> column="64"/>
</issue> </issue>
@@ -4697,7 +4729,7 @@
errorLine2=" ~~~~~~~~~~~~~~~~~~~"> errorLine2=" ~~~~~~~~~~~~~~~~~~~">
<location <location
file="res/values-en-rXC/strings.xml" file="res/values-en-rXC/strings.xml"
line="3092" line="3104"
column="170"/> column="170"/>
</issue> </issue>
@@ -4713,7 +4745,7 @@
errorLine2=" ~~~~~~~~~~~~~~~~~~~"> errorLine2=" ~~~~~~~~~~~~~~~~~~~">
<location <location
file="res/values/strings.xml" file="res/values/strings.xml"
line="7103" line="7142"
column="36"/> column="36"/>
</issue> </issue>
@@ -4745,7 +4777,7 @@
errorLine2=" ^"> errorLine2=" ^">
<location <location
file="res/values-night/themes.xml" file="res/values-night/themes.xml"
line="37" line="33"
column="41"/> column="41"/>
</issue> </issue>
@@ -4761,7 +4793,7 @@
errorLine2=" ^"> errorLine2=" ^">
<location <location
file="res/values-night/themes.xml" file="res/values-night/themes.xml"
line="37" line="33"
column="41"/> column="41"/>
</issue> </issue>
@@ -4841,7 +4873,7 @@
errorLine2=" ^"> errorLine2=" ^">
<location <location
file="res/values/themes.xml" file="res/values/themes.xml"
line="185" line="192"
column="45"/> column="45"/>
</issue> </issue>
@@ -4857,7 +4889,7 @@
errorLine2=" ^"> errorLine2=" ^">
<location <location
file="res/values/themes.xml" file="res/values/themes.xml"
line="186" line="193"
column="49"/> column="49"/>
</issue> </issue>
@@ -4873,7 +4905,7 @@
errorLine2=" ^"> errorLine2=" ^">
<location <location
file="res/values/themes.xml" file="res/values/themes.xml"
line="194" line="201"
column="45"/> column="45"/>
</issue> </issue>
@@ -4889,7 +4921,7 @@
errorLine2=" ^"> errorLine2=" ^">
<location <location
file="res/values/themes.xml" file="res/values/themes.xml"
line="195" line="202"
column="49"/> column="49"/>
</issue> </issue>