Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 23776499 authored by David Su's avatar David Su
Browse files

Create SdkLevelUtil for Mainline

Mainline modules should disable new APIs on older SDK levels
by checking the Build.VERSION constants.

Before S SDK finalization, checking
`VERSION.SDK_INT >= VERSION_CODES.S` doesn't work on S development
builds, because SDK_INT = R = 30, while VERSION_CODES.S = 10000.
Thus, check Build.VERSION.CODENAME as a workaround.

Bug: 154742276
Test: tested on S dev build
Change-Id: I51cb8136f6700fc93eb24f1941717b41d344dba4
parent cde03184
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment