mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-27 20:36:51 +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);
|
ZipInputStream zis = new ZipInputStream(afin);
|
||||||
ZipEntry ze;
|
ZipEntry ze;
|
||||||
|
boolean found = false;
|
||||||
try {
|
try {
|
||||||
while ((ze = zis.getNextEntry()) != null) {
|
while ((ze = zis.getNextEntry()) != null) {
|
||||||
if (ze.getName().startsWith(dir)) {
|
if (ze.getName().startsWith(dir)) {
|
||||||
platformDir = dir;
|
platformDir = dir;
|
||||||
|
found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -135,6 +137,9 @@ public class PBWReader {
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
if (found) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (platform.equals("chalk") && platformDir.equals("")) {
|
if (platform.equals("chalk") && platformDir.equals("")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user