1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 05:16:51 +01:00

added asset sub handle

This commit is contained in:
Daniel Dakhno 2020-01-09 15:34:40 +01:00
parent cd28b4d21b
commit 30b6837012
2 changed files with 6 additions and 10 deletions

View File

@ -10,14 +10,10 @@ import nodomain.freeyourgadget.gadgetbridge.service.devices.qhybrid.requests.fos
import nodomain.freeyourgadget.gadgetbridge.service.devices.qhybrid.utils.StringUtils;
public class AssetFilePutRequest extends FilePutRequest {
public AssetFilePutRequest(AssetFile[] files, FossilWatchAdapter adapter) throws IOException {
super((short) 0x0700, prepareFileData(files), adapter);
public AssetFilePutRequest(AssetFile[] files, byte subHandle, FossilWatchAdapter adapter) throws IOException {
super((short) (0x0700 | subHandle), prepareFileData(files), adapter);
}
public AssetFilePutRequest(AssetFile file, FossilWatchAdapter adapter) throws IOException {
super((short) 0x0700, prepareFileData(file), adapter);
}
public AssetFilePutRequest(AssetFile file, int subHandle, FossilWatchAdapter adapter) throws IOException {
public AssetFilePutRequest(AssetFile file, byte subHandle, FossilWatchAdapter adapter) throws IOException {
super((short) (0x0700 | subHandle), prepareFileData(file), adapter);
}

View File

@ -14,15 +14,15 @@ import nodomain.freeyourgadget.gadgetbridge.service.devices.qhybrid.utils.String
public class NotificationImagePutRequest extends AssetFilePutRequest {
private NotificationImagePutRequest(String packageName, AssetFile file, FossilWatchAdapter adapter) throws IOException {
super(file, adapter);
super(file, (byte) 0x01, adapter);
}
private NotificationImagePutRequest(NotificationImage image, FossilWatchAdapter adapter) throws IOException {
super(image, adapter);
super(image, (byte) 0x01, adapter);
}
public NotificationImagePutRequest(NotificationImage[] images, FossilWatchAdapter adapter) throws IOException {
super(images, adapter);
super(images, (byte) 0x01, adapter);
}