HPlus: Fix text notification length

here
João Paulo Barraca 2016-12-23 01:35:18 +00:00
parent 2b78f2708f
commit 9a338c9bae
1 changed files with 2 additions and 2 deletions

View File

@ -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 += " ";
}
}