mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-19 23:27:48 +01:00
[Huawei] Fix notification length
This commit is contained in:
parent
c0d0b4dfbe
commit
4059566a25
@ -65,7 +65,7 @@ public class SendNotificationRequest extends Request {
|
|||||||
|
|
||||||
String body = notificationSpec.body;
|
String body = notificationSpec.body;
|
||||||
if (body.length() > supportProvider.getHuaweiCoordinator().getContentLength()) {
|
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 += "...";
|
body += "...";
|
||||||
}
|
}
|
||||||
this.packet = new Notifications.NotificationActionRequest(
|
this.packet = new Notifications.NotificationActionRequest(
|
||||||
|
Loading…
Reference in New Issue
Block a user