[Huawei] Fix notification length

This commit is contained in:
Damien 'Psolyca' Gaignon 2024-04-15 22:58:23 +02:00
parent c0d0b4dfbe
commit 4059566a25
No known key found for this signature in database
GPG Key ID: 9E9404E5D9E11843
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public class SendNotificationRequest extends Request {
String body = notificationSpec.body;
if (body.length() > supportProvider.getHuaweiCoordinator().getContentLength()) {
body = notificationSpec.body.substring(0x0, supportProvider.getHuaweiCoordinator().getContentLength() - 0xC);
body = notificationSpec.body.substring(0x0, supportProvider.getHuaweiCoordinator().getContentLength() - 0xD);
body += "...";
}
this.packet = new Notifications.NotificationActionRequest(