1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2025-01-22 23:57:33 +01:00

Fix firmware installation on Pebble Time Round

Closes #602
This commit is contained in:
Andreas Shimokawa 2017-03-17 22:34:50 +01:00
parent 9eade33d72
commit fe07e09d41

View File

@ -97,10 +97,14 @@ public class PBWReader {
return;
}
String platformDir = determinePlatformDir(uriHelper, platform);
String platformDir = "";
if (!uriHelper.getFileName().endsWith(".pbz")) {
platformDir = determinePlatformDir(uriHelper, platform);
if (platform.equals("chalk") && platformDir.equals("")) {
return;
}
}
LOG.info("using platformdir: '" + platformDir + "'");
String appName = null;
@ -237,9 +241,6 @@ public class PBWReader {
private String determinePlatformDir(UriHelper uriHelper, String platform) throws IOException {
String platformDir = "";
if (uriHelper.getFileName().endsWith(".pbz")) {
return platformDir;
}
/*
* for aplite and basalt it is possible to install 2.x apps which have no subfolder
* we still prefer the subfolders if present.