mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-27 12:26:48 +01:00
Pebble 2: Fix Pebble Classic FW 3.x app variant being priorized over native Pebble 2 app variant
Fixes #475
This commit is contained in:
parent
a84bc16503
commit
3441192d19
@ -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("")) {
|
||||
|
Loading…
Reference in New Issue
Block a user