mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
HPlus: Fix text notification length
This commit is contained in:
+2
-2
@@ -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 += " ";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user