mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
don't continue load for android if there's an error
This commit is contained in:
@@ -46,7 +46,7 @@ public class Android implements Tool {
|
||||
|
||||
|
||||
public String getMenuTitle() {
|
||||
return "Android";
|
||||
return "Android Mode";
|
||||
}
|
||||
|
||||
|
||||
@@ -59,12 +59,15 @@ public class Android implements Tool {
|
||||
editor.statusNotice("Loading Android tools.");
|
||||
|
||||
checkPath();
|
||||
Device.checkDefaults();
|
||||
|
||||
editor.setHandlers(new RunHandler(this), new PresentHandler(this),
|
||||
new ExportHandler(this), new ExportAppHandler(this));
|
||||
build = new Build(editor);
|
||||
editor.statusNotice("Done loading Android tools.");
|
||||
boolean success = Device.checkDefaults();
|
||||
if (success) {
|
||||
editor.setHandlers(new RunHandler(this), new PresentHandler(this),
|
||||
new ExportHandler(this), new ExportAppHandler(this));
|
||||
build = new Build(editor);
|
||||
editor.statusNotice("Done loading Android tools.");
|
||||
} else {
|
||||
editor.statusError("Could not load Android tools.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user