mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
Mi Band 7: Fix NPE when acknowledging that icon was sent
This commit is contained in:
parent
f1ecebc983
commit
6b7f80e8de
@ -2527,9 +2527,6 @@ public abstract class Huami2021Support extends HuamiSupport {
|
||||
|
||||
LOG.info("Acknowledging icon send for {}", queuedIconPackage);
|
||||
|
||||
queuedIconPackage = null;
|
||||
queuedIconBytes = null;
|
||||
|
||||
final ByteBuffer buf = ByteBuffer.allocate(1 + queuedIconPackage.length() + 1 + 1);
|
||||
buf.order(ByteOrder.LITTLE_ENDIAN);
|
||||
buf.put(NOTIFICATION_CMD_ICON_REQUEST_ACK);
|
||||
@ -2537,6 +2534,9 @@ public abstract class Huami2021Support extends HuamiSupport {
|
||||
buf.put((byte) 0x00);
|
||||
buf.put((byte) 0x01);
|
||||
|
||||
queuedIconPackage = null;
|
||||
queuedIconBytes = null;
|
||||
|
||||
writeToChunked2021("ack icon send", CHUNKED2021_ENDPOINT_NOTIFICATIONS, buf.array(), true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user