From 9d083e2330dbaa34ad7d73e1a8cdbf7ba6729429 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Thu, 24 Nov 2016 22:09:27 +0100 Subject: [PATCH] Pebble: add Kickstart Watchface to app manager on FW 4.X I know it only exist on 4.3+, but I am lazy --- .../activities/appmanager/AbstractAppManagerFragment.java | 5 +++++ .../appmanager/AppManagerFragmentInstalledWatchfaces.java | 1 + 2 files changed, 6 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/appmanager/AbstractAppManagerFragment.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/appmanager/AbstractAppManagerFragment.java index 50b86ced..3c0de5ae 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/appmanager/AbstractAppManagerFragment.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/appmanager/AbstractAppManagerFragment.java @@ -195,6 +195,11 @@ public abstract class AbstractAppManagerFragment extends Fragment { continue; } } + if (PebbleUtils.getFwMajor(mGBDevice.getFirmwareVersion()) >= 4) { + if (baseName.equals("3af858c3-16cb-4561-91e7-f1ad2df8725f")) { + cachedAppList.add(new GBDeviceApp(UUID.fromString(baseName), "Kickstart (System)", "Pebble Inc.", "", GBDeviceApp.Type.WATCHFACE_SYSTEM)); + } + } } if (uuids == null) { cachedAppList.add(new GBDeviceApp(UUID.fromString(baseName), baseName, "N/A", "", GBDeviceApp.Type.UNKNOWN)); diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/appmanager/AppManagerFragmentInstalledWatchfaces.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/appmanager/AppManagerFragmentInstalledWatchfaces.java index a0df8d89..b41fad04 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/appmanager/AppManagerFragmentInstalledWatchfaces.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/appmanager/AppManagerFragmentInstalledWatchfaces.java @@ -12,6 +12,7 @@ public class AppManagerFragmentInstalledWatchfaces extends AbstractAppManagerFra protected List getSystemAppsInCategory() { List systemWatchfaces = new ArrayList<>(); systemWatchfaces.add(new GBDeviceApp(UUID.fromString("8f3c8686-31a1-4f5f-91f5-01600c9bdc59"), "Tic Toc (System)", "Pebble Inc.", "", GBDeviceApp.Type.WATCHFACE_SYSTEM)); + systemWatchfaces.add(new GBDeviceApp(UUID.fromString("3af858c3-16cb-4561-91e7-f1ad2df8725f"), "Kickstart (System)", "Pebble Inc.", "", GBDeviceApp.Type.WATCHFACE_SYSTEM)); return systemWatchfaces; }