mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-02-04 22:17:31 +01:00
Xiaomi: Add support for activating DND
from watch
This commit is contained in:
parent
f8ebe19d4b
commit
b8990ecc31
@ -86,6 +86,7 @@ public class XiaomiSystemService extends AbstractXiaomiService implements Xiaomi
|
|||||||
public static final int CMD_FIND_PHONE = 17;
|
public static final int CMD_FIND_PHONE = 17;
|
||||||
public static final int CMD_FIND_WATCH = 18;
|
public static final int CMD_FIND_WATCH = 18;
|
||||||
public static final int CMD_PASSWORD_SET = 21;
|
public static final int CMD_PASSWORD_SET = 21;
|
||||||
|
public static final int CMD_DND_MODE_SET = 23;
|
||||||
public static final int CMD_DISPLAY_ITEMS_GET = 29;
|
public static final int CMD_DISPLAY_ITEMS_GET = 29;
|
||||||
public static final int CMD_DISPLAY_ITEMS_SET = 30;
|
public static final int CMD_DISPLAY_ITEMS_SET = 30;
|
||||||
public static final int CMD_WORKOUT_TYPES_GET = 39;
|
public static final int CMD_WORKOUT_TYPES_GET = 39;
|
||||||
@ -157,6 +158,9 @@ public class XiaomiSystemService extends AbstractXiaomiService implements Xiaomi
|
|||||||
case CMD_PASSWORD_GET:
|
case CMD_PASSWORD_GET:
|
||||||
handlePassword(cmd.getSystem().getPassword());
|
handlePassword(cmd.getSystem().getPassword());
|
||||||
return;
|
return;
|
||||||
|
case CMD_DND_MODE_SET:
|
||||||
|
LOG.debug("Got set DND, status={}", cmd.getSystem().getDndStatus());
|
||||||
|
return;
|
||||||
case CMD_MISC_SETTING_SET:
|
case CMD_MISC_SETTING_SET:
|
||||||
LOG.debug("Got misc setting set ack, status={}", cmd.getStatus());
|
LOG.debug("Got misc setting set ack, status={}", cmd.getStatus());
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user