1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-02 09:46:24 +02:00

Xiaomi: When sending contacts, use correct command to replace the ones already on the watch

This commit is contained in:
Andreas Shimokawa 2023-12-01 20:07:32 +01:00
parent 81e24e53ed
commit 1b2a9ac140
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -884,7 +884,6 @@ message ContactInfo {
message ContactList {
repeated ContactInfo contactInfo = 1;
optional string phoneNumber = 2;
}
message Phonebook {