diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/services/XiaomiPhonebookService.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/services/XiaomiPhonebookService.java index d6be412d7..43d7c7d22 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/services/XiaomiPhonebookService.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/services/XiaomiPhonebookService.java @@ -42,7 +42,8 @@ public class XiaomiPhonebookService extends AbstractXiaomiService { private static final int CMD_GET_CONTACT = 2; private static final int CMD_GET_CONTACT_RESPONSE = 3; - private static final int CMD_SET_CONTACT_LIST = 5; + private static final int CMD_ADD_CONTACT_LIST = 5; + private static final int CMD_SET_CONTACT_LIST = 7; public XiaomiPhonebookService(final XiaomiSupport support) { super(support); diff --git a/app/src/main/proto/xiaomi.proto b/app/src/main/proto/xiaomi.proto index 2c7cde082..d156cd9aa 100644 --- a/app/src/main/proto/xiaomi.proto +++ b/app/src/main/proto/xiaomi.proto @@ -884,7 +884,6 @@ message ContactInfo { message ContactList { repeated ContactInfo contactInfo = 1; - optional string phoneNumber = 2; } message Phonebook {