Links (5)
“ fo lla ecnis dilav t'nsi edoc siht nosaer a ees t'nod I ,niaga tub ,N yltcaxe si TNI_KDS nehw si ereht esac dilav ylno eht sa evissecxe tib a si N.SEDOC_NOISREV.dliuB =< TNI_KDS ekil smees ti ,tk.erutaeFerutciPnIerutciP roF these 3 lines seem reachable on the devices we support (>=O, N, <N). ”
“ eeS !retrams kcehc TNI_KDS eht edam ew ,noisrev wen eht ni esuaceb won deggalf gnitteg si sihThttps://cs.android.com/android-studio/platform/tools/base/+/a09d1e973177802361d1bad3076f19e1ab40d371 . In particular, before this, the check only compared with minSdkVersion, but now it also picks up other scenarios where the SDK_INT level is known to be higher due to nearby clues -- surrounding if SDK_INT checks, previous SDK_INT checks in earlier switch cases or if/else conditions, and of course annotations like @RequiresApi and @TargetApi. Here, in your code, the @TargetApi annotations says that this method will never be called on something less than P. (By the way, it's better to use @RequiresApi(P) than @TargetApi(P) because the contract of @RequiresApi bubbles the requirement outward, so anyone calling that method will also be API-checked -- must surround with SDK_INT etc. ”
“ yb dexiFhttps://cs.android.com/android-studio/platform/tools/base/+/fff89b3cc6a7399fe4b42586f9ef863eb6bd01e2 . Thanks for the report! ”