Pebble 2: Fix Pebble Classic FW 3.x app variant being priorized over native Pebble 2 app variant

Fixes #475
here
Andreas Shimokawa 2016-12-25 23:11:49 +01:00
parent a84bc16503
commit 3441192d19
1 changed files with 5 additions and 0 deletions

View File

@ -124,10 +124,12 @@ public class PBWReader {
ZipInputStream zis = new ZipInputStream(afin);
ZipEntry ze;
boolean found = false;
try {
while ((ze = zis.getNextEntry()) != null) {
if (ze.getName().startsWith(dir)) {
platformDir = dir;
found = true;
break;
}
}
@ -135,6 +137,9 @@ public class PBWReader {
} catch (IOException e) {
e.printStackTrace();
}
if (found) {
break;
}
}
if (platform.equals("chalk") && platformDir.equals("")) {