mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-27 09:01:38 +01:00
Mi Band 6: Enable World clock setting
Also take care of new/old firmware
This commit is contained in:
parent
5c6edea233
commit
46cd229a14
@ -70,6 +70,16 @@ public class MiBand6Coordinator extends HuamiCoordinator {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getWorldClocksSlotCount() {
|
||||||
|
return 20; // as enforced by Mi Fit
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getWorldClocksLabelLength() {
|
||||||
|
return 30; // at least
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int[] getSupportedDeviceSpecificSettings(GBDevice device) {
|
public int[] getSupportedDeviceSpecificSettings(GBDevice device) {
|
||||||
return new int[]{
|
return new int[]{
|
||||||
@ -78,6 +88,7 @@ public class MiBand6Coordinator extends HuamiCoordinator {
|
|||||||
R.xml.devicesettings_custom_emoji_font,
|
R.xml.devicesettings_custom_emoji_font,
|
||||||
R.xml.devicesettings_timeformat,
|
R.xml.devicesettings_timeformat,
|
||||||
R.xml.devicesettings_dateformat,
|
R.xml.devicesettings_dateformat,
|
||||||
|
R.xml.devicesettings_world_clocks,
|
||||||
R.xml.devicesettings_nightmode,
|
R.xml.devicesettings_nightmode,
|
||||||
R.xml.devicesettings_liftwrist_display_sensitivity,
|
R.xml.devicesettings_liftwrist_display_sensitivity,
|
||||||
R.xml.devicesettings_swipeunlock,
|
R.xml.devicesettings_swipeunlock,
|
||||||
|
@ -978,7 +978,7 @@ public class HuamiSupport extends AbstractBTLEDeviceSupport {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
writeToChunked2021(builder, (short) 0x0008, getNextHandle(), baos.toByteArray(), false, false);
|
writeToChunked2021(builder, (short) 0x0008, getNextHandle(), baos.toByteArray(), force2021Protocol, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte[] encodeWorldClock(final WorldClock clock) {
|
public byte[] encodeWorldClock(final WorldClock clock) {
|
||||||
|
Loading…
Reference in New Issue
Block a user