Skip to content

Commit 29bc987

Browse files
committed
Merge pull request #164 from omerjerk/bugfix_sdkDownload
don't check for sdk inside the constructor of AndroidMode
2 parents 5ad3188 + 4204495 commit 29bc987

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/processing/mode/android/AndroidMode.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public class AndroidMode extends JavaMode {
4747

4848
public AndroidMode(Base base, File folder) {
4949
super(base, folder);
50-
checkSDK(null);
5150
}
5251

5352

@@ -129,13 +128,13 @@ public void loadSDK() {
129128
}
130129
}
131130

132-
public void checkSDK(Editor parent) {
131+
public void checkSDK(Editor editor) {
133132
if (sdk == null) {
134133
try {
135134
sdk = AndroidSDK.load();
136135
// FIXME REVERT THIS STATEMENT AFTER TESTING (should be ==)
137-
if (sdk == null && parent != null) {
138-
sdk = AndroidSDK.locate(parent, this);
136+
if (sdk == null && editor != null) {
137+
sdk = AndroidSDK.locate(editor, this);
139138
}
140139
} catch (BadSDKException e) {
141140
e.printStackTrace();

0 commit comments

Comments
 (0)