Fix Gradle Lint with @RequiresApi and SDK version
Gradle Lint doesn't recognise `checkState` assertion and TargetApi should only ever be used for suppressing a bug in Android Lint. Hence, we keep @RequiresApi and add an if-statement explicitly. Also, fixes >26 to >=26 for the version check. PiperOrigin-RevId: 555144577 (cherry picked from commit 5720b6197479f3cd54b82d2e1e3ec9b50397e267)
Showing
with
4 additions
and
4 deletions
Please
register
or
sign in
to comment