fixed asset handle

This commit is contained in:
dakhnod 2020-01-07 21:44:24 +01:00
parent b04ff78e90
commit 5cf7dba17b
2 changed files with 4 additions and 4 deletions

View File

@ -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));

View File

@ -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 {