Skip to content

Commit

Permalink
Analysis: Suppress get color deprecated warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ParaskP7 committed Nov 17, 2022
1 parent 3c54be7 commit c32e320
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ class ColorConverter {
* cannot be translated.
*/
@ColorInt
@Suppress("DEPRECATION")
fun getColorInt(colorText: String): Int {
try {
if (isColorResource(colorText)) {
Expand Down

0 comments on commit c32e320

Please sign in to comment.