1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 18:15:49 +01:00

Huami: Fix track name being replaced by album

This commit is contained in:
José Rebelo 2022-06-15 18:56:37 +01:00
parent 33d433d206
commit 8030efe019

View File

@ -1352,7 +1352,7 @@ public class HuamiSupport extends AbstractBTLEDeviceSupport {
if (musicSpec != null) {
artist = StringUtils.truncate(musicSpec.artist, 80);
album = StringUtils.truncate(musicSpec.album, 80);
track = StringUtils.truncate(musicSpec.album, 80);
track = StringUtils.truncate(musicSpec.track, 80);
if (artist.getBytes().length > 0) {
length += artist.getBytes().length + 1;