8000 Suppress deprecation warning for use of Build.CPU_ABI (#8154) · flutter/engine@fcc66fc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit fcc66fc

Browse files
Suppress deprecation warning for use of Build.CPU_ABI (#8154)
1 parent fdad56f commit fcc66fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shell/platform/android/io/flutter/view/ResourceExtractor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,9 @@ private String getAPKPath() {
409409
}
410410
}
411411

412+
@SuppressWarnings("deprecation")
412413
private static String[] getSupportedAbis() {
413-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && Build.SUPPORTED_ABIS.length > 0) {
414+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
414415
return Build.SUPPORTED_ABIS;
415416
} else {
416417
ArrayList<String> cpuAbis = new ArrayList<String>(asList(Build.CPU_ABI, Build.CPU_ABI2));

0 commit comments

Comments
 (0)
0