mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-02-03 21:47:32 +01:00
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
This commit is contained in:
parent
c85a0edace
commit
4986fdd0ea
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user