I ran lint on a test project and got some API errors. It turns out that the code is properly checking for the SDK_INT level, but it stores this in an intermediate local variable.
Lint looks for SDK_INTs stored in fields and checked by utility methods, but not intermediate local variables.
Description
I ran lint on a test project and got some API errors. It turns out that the code is properly checking for the SDK_INT level, but it stores this in an intermediate local variable.
Lint looks for SDK_INTs stored in fields and checked by utility methods, but not intermediate local variables.
Example: the "dynamicColor" variable inhttps://github.com/code-with-the-italians/bundel/blob/main/app/src/main/java/dev/sebastiano/bundel/ui/Theme.kt#L23