Skip to content

Commit daf0c61

Browse files
committed
don't add watch devices
1 parent 13acaa1 commit daf0c61

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
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-
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-
}
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());

src/processing/mode/android/Devices.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,12 @@ private void refresh() {
254254
final List<String> activeDevices = list();
255255
for (final String deviceId : activeDevices) {
256256
if (!devices.containsKey(deviceId)) {
257-
addDevice(new Device(this, deviceId));
257+
Device device = new Device(this, deviceId);
258+
if (device.hasFeature("watch")) {
259+
// Watches are accessed through the paired mobile devices
260+
continue;
261+
}
262+
addDevice(device);
258263
}
259264
}
260265
}

0 commit comments

Comments
 (0)