From b9249065eb4f5fd8d9c7b9a518608b39e3dbb83c Mon Sep 17 00:00:00 2001 From: ivanovlev Date: Sat, 14 Jan 2017 23:01:44 +0300 Subject: [PATCH] Fix for send message from debug screen --- .../gadgetbridge/service/devices/hplus/HPlusSupport.java | 5 +++++ 1 file changed, 5 insertions(+) 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 a674d6b74..aa1836876 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 @@ -785,7 +785,12 @@ public class HPlusSupport extends AbstractBTLEDeviceSupport { //replace unsupported symbols to english analog private String transliterate(String txt){ + if (txt == null || txt.isEmpty()) { + return txt; + } + StringBuilder message = new StringBuilder(); + char[] chars = txt.toCharArray(); for (char c : chars)