mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-27 02:55:50 +01:00
fixed crash
This commit is contained in:
parent
9e37f13821
commit
53d0dea9db
@ -1,5 +1,6 @@
|
||||
package nodomain.freeyourgadget.gadgetbridge.service.devices.qhybrid.requests.fossil_hr.music;
|
||||
|
||||
import java.nio.BufferOverflowException;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
|
||||
@ -11,7 +12,7 @@ public class MusicInfoSetRequest extends FilePutRequest {
|
||||
super((short) 0x0400, createFile(artist, album, title), adapter);
|
||||
}
|
||||
|
||||
private static byte[] createFile(String artist, String album, String title){
|
||||
private static byte[] createFile(String artist, String album, String title) {
|
||||
int length = artist.length() + album.length() + title.length()
|
||||
+ 3 // null terminators
|
||||
+ 8; // length and header
|
||||
|
Loading…
Reference in New Issue
Block a user