mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-11 17:41:57 +01:00
changed file handle handling
This commit is contained in:
parent
337c54498c
commit
02fb7a0e43
@ -203,6 +203,7 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
|
|||||||
this
|
this
|
||||||
));
|
));
|
||||||
|
|
||||||
|
queueWrite(new FileDeleteRequest((short) 0x0503));
|
||||||
queueWrite(new ImagesSetRequest(
|
queueWrite(new ImagesSetRequest(
|
||||||
widgetImages,
|
widgetImages,
|
||||||
this
|
this
|
||||||
|
@ -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) 0x0700, prepareFileData(files), adapter);
|
super((short) 0x0701, prepareFileData(files), adapter);
|
||||||
}
|
}
|
||||||
public AssetFilePutRequest(AssetFile file, FossilWatchAdapter adapter) throws IOException {
|
public AssetFilePutRequest(AssetFile file, FossilWatchAdapter adapter) throws IOException {
|
||||||
super((short) 0x0700, prepareFileData(file), adapter);
|
super((short) 0x0701, 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) (0x0700 | subHandle), prepareFileData(file), adapter);
|
super((short) (0x0701 | 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