mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
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:
+8
-17
@@ -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())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user