mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-01 06:22:55 +01:00
HPlus: Fix text notification length
This commit is contained in:
parent
2b78f2708f
commit
9a338c9bae
@ -653,11 +653,11 @@ public class HPlusSupport extends AbstractBTLEDeviceSupport {
|
|||||||
String message = "";
|
String message = "";
|
||||||
|
|
||||||
if (title != null) {
|
if (title != null) {
|
||||||
if (title.length() > 12) {
|
if (title.length() > 17) {
|
||||||
message = title.substring(0, 12);
|
message = title.substring(0, 12);
|
||||||
} else {
|
} else {
|
||||||
message = title;
|
message = title;
|
||||||
for (int i = message.length(); i < 12; i++)
|
for (int i = message.length(); i < 17; i++)
|
||||||
message += " ";
|
message += " ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user