From 9a338c9baefae05bc66e58bc8d5e009d6835d05c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joa=CC=83o=20Paulo=20Barraca?= Date: Fri, 23 Dec 2016 01:35:18 +0000 Subject: [PATCH] HPlus: Fix text notification length --- .../gadgetbridge/service/devices/hplus/HPlusSupport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/hplus/HPlusSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/hplus/HPlusSupport.java index 8914f198..181b8123 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/hplus/HPlusSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/hplus/HPlusSupport.java @@ -653,11 +653,11 @@ public class HPlusSupport extends AbstractBTLEDeviceSupport { String message = ""; if (title != null) { - if (title.length() > 12) { + if (title.length() > 17) { message = title.substring(0, 12); } else { message = title; - for (int i = message.length(); i < 12; i++) + for (int i = message.length(); i < 17; i++) message += " "; } }