mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 11:49:04 +01:00
Don't try to access Build.CPU_ABI2 on API version 7.
This commit is contained in:
@@ -46,9 +46,11 @@ public class TorPluginFactory implements DuplexPluginFactory {
|
||||
List<String> abis = new ArrayList<String>();
|
||||
if(Build.VERSION.SDK_INT >= 21) {
|
||||
for(String abi : Build.SUPPORTED_ABIS) abis.add(abi);
|
||||
} else {
|
||||
} else if(Build.VERSION.SDK_INT >= 8) {
|
||||
abis.add(Build.CPU_ABI);
|
||||
if(Build.CPU_ABI2 != null) abis.add(Build.CPU_ABI2);
|
||||
} else {
|
||||
abis.add(Build.CPU_ABI);
|
||||
}
|
||||
boolean supported = false;
|
||||
for(String abi : abis) if(abi.startsWith("armeabi")) supported = true;
|
||||
|
||||
Reference in New Issue
Block a user