Skip to content

Commit c32e320

Browse files
committed
Analysis: Suppress get color deprecated warning
Warning Message: "'getColor(Int): Int' is deprecated. Deprecated in Java" FYI: This is being suppressed instead of it being resolved since the 'minSdkVersion' is also about to be update to '24' and as such this 'Build.VERSION.SDK_INT < Build.VERSION_CODES.M' logic, along with its deprecation, will get deleted altogether.
1 parent 3c54be7 commit c32e320

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/util/ColorConverter.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ class ColorConverter {
209209
* cannot be translated.
210210
*/
211211
@ColorInt
212+
@Suppress("DEPRECATION")
212213
fun getColorInt(colorText: String): Int {
213214
try {
214215
if (isColorResource(colorText)) {

0 commit comments

Comments
 (0)