Use VERSION_CODES instead of raw numbers

This commit is contained in:
topjohnwu
2022-08-23 01:43:53 -07:00
parent c2f96975ce
commit 3f7f6e619a
13 changed files with 33 additions and 26 deletions
@@ -186,7 +186,7 @@ public class DownloadActivity extends Activity {
}
private void loadResources() throws Exception {
if (Build.VERSION.SDK_INT >= 30) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
var fd = Os.memfd_create("res.apk", 0);
try {
decryptResources(new FileOutputStream(fd));