mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-11 17:41:57 +01:00
fixed asset handle
This commit is contained in:
parent
b04ff78e90
commit
5cf7dba17b
@ -140,7 +140,7 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
|
|||||||
overwriteButtons(null);
|
overwriteButtons(null);
|
||||||
|
|
||||||
loadWidgets();
|
loadWidgets();
|
||||||
// renderWidgets();
|
renderWidgets();
|
||||||
// dunno if there is any point in doing this at start since when no watch is connected the QHybridSupport will not receive any intents anyway
|
// dunno if there is any point in doing this at start since when no watch is connected the QHybridSupport will not receive any intents anyway
|
||||||
|
|
||||||
queueWrite(new SetDeviceStateRequest(GBDevice.State.INITIALIZED));
|
queueWrite(new SetDeviceStateRequest(GBDevice.State.INITIALIZED));
|
||||||
|
@ -11,14 +11,14 @@ import nodomain.freeyourgadget.gadgetbridge.service.devices.qhybrid.utils.String
|
|||||||
|
|
||||||
public class AssetFilePutRequest extends FilePutRequest {
|
public class AssetFilePutRequest extends FilePutRequest {
|
||||||
public AssetFilePutRequest(AssetFile[] files, FossilWatchAdapter adapter) throws IOException {
|
public AssetFilePutRequest(AssetFile[] files, FossilWatchAdapter adapter) throws IOException {
|
||||||
super((short) 0x0701, prepareFileData(files), adapter);
|
super((short) 0x0700, prepareFileData(files), adapter);
|
||||||
}
|
}
|
||||||
public AssetFilePutRequest(AssetFile file, FossilWatchAdapter adapter) throws IOException {
|
public AssetFilePutRequest(AssetFile file, FossilWatchAdapter adapter) throws IOException {
|
||||||
super((short) 0x0701, prepareFileData(file), adapter);
|
super((short) 0x0700, prepareFileData(file), adapter);
|
||||||
}
|
}
|
||||||
|
|
||||||
public AssetFilePutRequest(AssetFile file, int subHandle, FossilWatchAdapter adapter) throws IOException {
|
public AssetFilePutRequest(AssetFile file, int subHandle, FossilWatchAdapter adapter) throws IOException {
|
||||||
super((short) (0x0701 | subHandle), prepareFileData(file), adapter);
|
super((short) (0x0700 | subHandle), prepareFileData(file), adapter);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static byte[] prepareFileData(AssetFile[] files) throws IOException {
|
private static byte[] prepareFileData(AssetFile[] files) throws IOException {
|
||||||
|
Loading…
Reference in New Issue
Block a user