Skip to content

Commit cde8eba

Browse files
committed
show error when trying to install app on watch
1 parent ff8bcef commit cde8eba

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/processing/mode/android/AndroidRunner.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ public void launch(Future<Device> deviceFuture, boolean wear) {
7878
return;
7979
}
8080

81-
// if (wear && !device.hasFeature("watch")) {
82-
// Messages.showWarning("Device is not a watch!",
83-
// "Processing built your sketch as a watch face, but\n" +
84-
// "you selected a non-watch device to install it on.\n" +
85-
// "Please select a watch device instead.");
86-
// listener.statusError("Trying to install a watch face on a non-watch device. Select correct device.");
87-
// return;
88-
// }
81+
if (!wear && device.hasFeature("watch")) {
82+
listener.statusError("Trying to install a regular app or wallpaper on a watch.");
83+
System.err.println("For some reason, Processing is trying to install the sketch\n" +
84+
"on the paired watch instead of the mobile device.");
85+
86+
listener.statusError("Trying to install a watch face on a non-watch device. Select correct device.");
87+
return;
88+
}
8989

9090
device.addListener(this);
9191
device.setPackageName(build.getPackageName());

0 commit comments

Comments
 (0)