Pebble 2 Duo: prefer flint/ and diorite/ folders over aplite/ when installing apps

(Elso only OG binaries will be insalled which make TimeStyle for example much worse)
This commit is contained in:
Andreas Shimokawa
2025-10-31 11:26:52 +01:00
parent 9f751725e9
commit 0ab9cacd7f
@@ -246,23 +246,14 @@ public class PBWReader {
* we still prefer the subfolders if present. * we still prefer the subfolders if present.
* chalk needs to be its subfolder * chalk needs to be its subfolder
*/ */
String[] platformDirs; String[] platformDirs = switch (platform) {
switch (platform) { case "basalt" -> new String[]{"basalt/"};
case "basalt": case "chalk" -> new String[]{"chalk/"};
platformDirs = new String[]{"basalt/"}; case "diorite" -> new String[]{"diorite/", "aplite/"};
break; case "emery" -> new String[]{"emery/", "basalt/"};
case "chalk": case "flint" -> new String[]{"flint/", "diorite/", "aplite/"};
platformDirs = new String[]{"chalk/"}; default -> new String[]{"aplite/"};
break; };
case "diorite":
platformDirs = new String[]{"diorite/", "aplite/"};
break;
case "emery":
platformDirs = new String[]{"emery/", "basalt/"};
break;
default:
platformDirs = new String[]{"aplite/"};
}
for (String dir : platformDirs) { for (String dir : platformDirs) {
try (ZipInputStream zis = new ZipInputStream(uriHelper.openInputStream())) { try (ZipInputStream zis = new ZipInputStream(uriHelper.openInputStream())) {