mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Suppress deprecation warning for use of Build.CPU_ABI (flutter/engine#8154)
This commit is contained in:
parent
bb69b40272
commit
ff7d13c6ed
@ -409,8 +409,9 @@ class ResourceExtractor {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private static String[] getSupportedAbis() {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && Build.SUPPORTED_ABIS.length > 0) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
return Build.SUPPORTED_ABIS;
|
||||
} else {
|
||||
ArrayList<String> cpuAbis = new ArrayList<String>(asList(Build.CPU_ABI, Build.CPU_ABI2));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user