mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-25 08:05:55 +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_WATCH = 18;
|
||||
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_SET = 30;
|
||||
public static final int CMD_WORKOUT_TYPES_GET = 39;
|
||||
@ -157,6 +158,9 @@ public class XiaomiSystemService extends AbstractXiaomiService implements Xiaomi
|
||||
case CMD_PASSWORD_GET:
|
||||
handlePassword(cmd.getSystem().getPassword());
|
||||
return;
|
||||
case CMD_DND_MODE_SET:
|
||||
LOG.debug("Got set DND, status={}", cmd.getSystem().getDndStatus());
|
||||
return;
|
||||
case CMD_MISC_SETTING_SET:
|
||||
LOG.debug("Got misc setting set ack, status={}", cmd.getStatus());
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user