From 4986fdd0eaace14a7545f85b74324384812f594f Mon Sep 17 00:00:00 2001 From: Vitaliy Tomin Date: Sat, 30 Mar 2024 22:23:42 +0800 Subject: [PATCH] Huawei: Use generic notification type instead of wechat * this match stock application Huawei Health * devices show proper applications icons if it exist in firmware, when type set to Wechat only wechat icon used * sender name was not shown with wechat type --- .../devices/huawei/requests/SendNotificationRequest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huawei/requests/SendNotificationRequest.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huawei/requests/SendNotificationRequest.java index 3b62a3ee8..78e52924f 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huawei/requests/SendNotificationRequest.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huawei/requests/SendNotificationRequest.java @@ -44,13 +44,12 @@ public class SendNotificationRequest extends Request { public static byte getNotificationType(NotificationType type) { switch (type.getGenericType()) { + case "generic": case "generic_social": case "generic_chat": - return Notifications.NotificationType.weChat; + return Notifications.NotificationType.generic; case "generic_email": return Notifications.NotificationType.email; - case "generic": - return Notifications.NotificationType.generic; default: return Notifications.NotificationType.sms; }