Skip to content

Commit 94a28ae

Browse files
Update SysImageDownloader.java
1 parent 3209246 commit 94a28ae

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

mode/src/processing/mode/android/SysImageDownloader.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,15 @@
22

33
/*
44
Part of the Processing project - http://processing.org
5-
65
Copyright (c) 2016-21 The Processing Foundation
76
87
This program is free software; you can redistribute it and/or modify
98
it under the terms of the GNU General Public License version 2
109
as published by the Free Software Foundation.
11-
1210
This program is distributed in the hope that it will be useful,
1311
but WITHOUT ANY WARRANTY; without even the implied warranty of
1412
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1513
GNU General Public License for more details.
16-
1714
You should have received a copy of the GNU General Public License
1815
along with this program; if not, write to the Free Software Foundation,
1916
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -253,12 +250,16 @@ private void getDownloadUrls(UrlHolder urlHolder,
253250
XPathExpression expr;
254251
NodeList remotePackages;
255252

256-
if (abi.equals("arm"))
253+
if (abi.equals("arm")) {
257254
expr = xpath.compile("//remotePackage[contains(@path, '" + AVD.TARGET_SDK_ARM + "')" +
258255
"and contains(@path, \"armeabi-v7a\")]");
259-
else
256+
} else if (abi.equals("arm64-v8a")) {
257+
expr = xpath.compile("//remotePackage[contains(@path, '" + AndroidBuild.TARGET_SDK + "')" +
258+
"and contains(@path, \"arm64-v8a\")]");
259+
} else {
260260
expr = xpath.compile("//remotePackage[contains(@path, '" + AndroidBuild.TARGET_SDK + "')" +
261261
"and contains(@path, \"x86\")]");
262+
}
262263

263264
if (wear) {
264265
Document docSysImgWear = db.parse(new URL(repositoryUrl).openStream());
@@ -561,4 +562,4 @@ public void actionPerformed(ActionEvent actionEvent) {
561562
setResizable(false);
562563
setLocationRelativeTo(editor);
563564
}
564-
}
565+
}

0 commit comments

Comments
 (0)