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;
|
int replies_length = -1;
|
||||||
if (cannedReplies != null) {
|
if (cannedReplies != null && cannedReplies.length > 0) {
|
||||||
actions_count++;
|
actions_count++;
|
||||||
for (String reply : cannedReplies) {
|
for (String reply : cannedReplies) {
|
||||||
replies_length += reply.getBytes().length + 1;
|
replies_length += reply.getBytes().length + 1;
|
||||||
|
@ -774,7 +774,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
||||||
}
|
}
|
||||||
|
|
||||||
int replies_length = -1;
|
int replies_length = -1;
|
||||||
if (cannedReplies != null) {
|
if (cannedReplies != null && cannedReplies.length > 0) {
|
||||||
actions_count++;
|
actions_count++;
|
||||||
for (String reply : cannedReplies) {
|
for (String reply : cannedReplies) {
|
||||||
replies_length += reply.getBytes().length + 1;
|
replies_length += reply.getBytes().length + 1;
|
||||||
|
|
Loading…
Reference in New Issue