From 1f4987ab986a14b39fc38bf5836d642dde56dde8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Sun, 13 Oct 2024 17:53:30 +0100 Subject: [PATCH] Huawei: Enable emoji for HarmonyOS watches --- .../huawei/huaweiwatch3/HuaweiWatch3Coordinator.java | 6 ++++++ .../huawei/huaweiwatch4pro/HuaweiWatch4ProCoordinator.java | 6 ++++++ .../huawei/huaweiwatchgt3/HuaweiWatchGT3Coordinator.java | 6 ++++++ .../huawei/huaweiwatchgt4/HuaweiWatchGT4Coordinator.java | 6 ++++++ .../huawei/huaweiwatchgt5/HuaweiWatchGT5Coordinator.java | 6 ++++++ .../huaweiwatchgtcyber/HuaweiWatchGTCyberCoordinator.java | 6 ++++++ .../huaweiwatchgtrunner/HuaweiWatchGTRunnerCoordinator.java | 6 ++++++ .../huaweiwatchultimate/HuaweiWatchUltimateCoordinator.java | 6 ++++++ 8 files changed, 48 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatch3/HuaweiWatch3Coordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatch3/HuaweiWatch3Coordinator.java index b79c34b65..081f574e7 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatch3/HuaweiWatch3Coordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatch3/HuaweiWatch3Coordinator.java @@ -38,4 +38,10 @@ public class HuaweiWatch3Coordinator extends HuaweiBRCoordinator { public int getDeviceNameResource() { return R.string.devicetype_huawei_watch3; } + + @Override + public boolean supportsUnicodeEmojis() { + // HarmonyOS watch + return true; + } } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatch4pro/HuaweiWatch4ProCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatch4pro/HuaweiWatch4ProCoordinator.java index 9a3a273ae..e849d50a4 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatch4pro/HuaweiWatch4ProCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatch4pro/HuaweiWatch4ProCoordinator.java @@ -43,4 +43,10 @@ public class HuaweiWatch4ProCoordinator extends HuaweiBRCoordinator { public int getDeviceNameResource() { return R.string.devicetype_huawei_watch4pro; } + + @Override + public boolean supportsUnicodeEmojis() { + // HarmonyOS watch + return true; + } } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgt3/HuaweiWatchGT3Coordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgt3/HuaweiWatchGT3Coordinator.java index 844ef1c01..09ba4e4cd 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgt3/HuaweiWatchGT3Coordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgt3/HuaweiWatchGT3Coordinator.java @@ -38,4 +38,10 @@ public class HuaweiWatchGT3Coordinator extends HuaweiBRCoordinator { public int getDeviceNameResource() { return R.string.devicetype_huawei_watchgt3; } + + @Override + public boolean supportsUnicodeEmojis() { + // HarmonyOS watch + return true; + } } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgt4/HuaweiWatchGT4Coordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgt4/HuaweiWatchGT4Coordinator.java index f1ea012fa..f0b862c46 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgt4/HuaweiWatchGT4Coordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgt4/HuaweiWatchGT4Coordinator.java @@ -43,4 +43,10 @@ public class HuaweiWatchGT4Coordinator extends HuaweiBRCoordinator { public int getDeviceNameResource() { return R.string.devicetype_huawei_watchgt4; } + + @Override + public boolean supportsUnicodeEmojis() { + // HarmonyOS watch + return true; + } } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgt5/HuaweiWatchGT5Coordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgt5/HuaweiWatchGT5Coordinator.java index 54d0981a2..b39cc488f 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgt5/HuaweiWatchGT5Coordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgt5/HuaweiWatchGT5Coordinator.java @@ -38,4 +38,10 @@ public class HuaweiWatchGT5Coordinator extends HuaweiBRCoordinator { public int getDeviceNameResource() { return R.string.devicetype_huawei_watchgt5; } + + @Override + public boolean supportsUnicodeEmojis() { + // HarmonyOS watch + return true; + } } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgtcyber/HuaweiWatchGTCyberCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgtcyber/HuaweiWatchGTCyberCoordinator.java index 084c00693..538c4436a 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgtcyber/HuaweiWatchGTCyberCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgtcyber/HuaweiWatchGTCyberCoordinator.java @@ -38,4 +38,10 @@ public class HuaweiWatchGTCyberCoordinator extends HuaweiBRCoordinator { public int getDeviceNameResource() { return R.string.devicetype_huawei_watchgtcyber; } + + @Override + public boolean supportsUnicodeEmojis() { + // HarmonyOS watch + return true; + } } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgtrunner/HuaweiWatchGTRunnerCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgtrunner/HuaweiWatchGTRunnerCoordinator.java index d91b0d6a9..56328dc88 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgtrunner/HuaweiWatchGTRunnerCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchgtrunner/HuaweiWatchGTRunnerCoordinator.java @@ -38,4 +38,10 @@ public class HuaweiWatchGTRunnerCoordinator extends HuaweiBRCoordinator { public int getDeviceNameResource() { return R.string.devicetype_huawei_watchgtrunner; } + + @Override + public boolean supportsUnicodeEmojis() { + // HarmonyOS watch + return true; + } } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchultimate/HuaweiWatchUltimateCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchultimate/HuaweiWatchUltimateCoordinator.java index 4ccab2eef..6e7831cdf 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchultimate/HuaweiWatchUltimateCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/huaweiwatchultimate/HuaweiWatchUltimateCoordinator.java @@ -43,4 +43,10 @@ public class HuaweiWatchUltimateCoordinator extends HuaweiBRCoordinator { public int getDeviceNameResource() { return R.string.devicetype_huawei_watchultimate; } + + @Override + public boolean supportsUnicodeEmojis() { + // HarmonyOS watch + return true; + } }