Pebble: fix "[Action]" being displayed as SMS action when no canned replies are defined

here
Andreas Shimokawa 2015-12-20 00:58:14 +01:00
parent 35c7ab6dde
commit 96e21dbf21
1 changed files with 2 additions and 2 deletions

View File

@ -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;