diff --git a/app/src/main/assets/fossil_hr/openSourceWatchface.bin b/app/src/main/assets/fossil_hr/openSourceWatchface.bin index 6358d3cdf..7ab1121c8 100644 Binary files a/app/src/main/assets/fossil_hr/openSourceWatchface.bin and b/app/src/main/assets/fossil_hr/openSourceWatchface.bin differ diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil_hr/FossilHRWatchAdapter.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil_hr/FossilHRWatchAdapter.java index f997d40f6..f2b76a007 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil_hr/FossilHRWatchAdapter.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil_hr/FossilHRWatchAdapter.java @@ -1584,6 +1584,18 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter { ); queueWrite(new JsonPutRequest(responseObject, this)); } + } else if (request.optString("custom_menu").equals("request_config")) { + // watchface requests custom menu data to be initialized + LOG.info("Got custom_menu config request, sending intent to HR Menu Companion app..."); + Intent intent = new Intent(); + intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + intent.setClassName("d.d.hrmenucompanion", "d.d.hrmenucompanion.MainActivity"); + intent.putExtra("SEND_CONFIG", true); + try { + getContext().startActivity(intent); + } catch (Exception e) { + LOG.info("Couldn't send intent to Fossil-HR-Menu-Companion app, is it installed?"); + } } else { LOG.warn("Unhandled request from watch: " + requestJson.toString()); } diff --git a/external/fossil-hr-watchface b/external/fossil-hr-watchface index f07ed376e..6a0c2bdad 160000 --- a/external/fossil-hr-watchface +++ b/external/fossil-hr-watchface @@ -1 +1 @@ -Subproject commit f07ed376e9046dbcc9c5d7821117c80b2d79ffd1 +Subproject commit 6a0c2bdad14e58d4cf4359e5f573c60aa89bca53