mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-25 16:15:55 +01:00
Pebble: fix "[Action]" being displayed as SMS action when no canned replies are defined
This commit is contained in:
parent
35c7ab6dde
commit
96e21dbf21
@ -513,7 +513,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
||||
}
|
||||
|
||||
int replies_length = -1;
|
||||
if (cannedReplies != null) {
|
||||
if (cannedReplies != null && cannedReplies.length > 0) {
|
||||
actions_count++;
|
||||
for (String reply : cannedReplies) {
|
||||
replies_length += reply.getBytes().length + 1;
|
||||
@ -774,7 +774,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
||||
}
|
||||
|
||||
int replies_length = -1;
|
||||
if (cannedReplies != null) {
|
||||
if (cannedReplies != null && cannedReplies.length > 0) {
|
||||
actions_count++;
|
||||
for (String reply : cannedReplies) {
|
||||
replies_length += reply.getBytes().length + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user