From 93e05e8dd6059f0803093b692e98666e4b100d35 Mon Sep 17 00:00:00 2001 From: Daniel Dakhno Date: Sat, 28 May 2022 02:10:45 +0200 Subject: [PATCH] Fossil HR: fixed null music spec --- .../qhybrid/adapter/fossil_hr/FossilHRWatchAdapter.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil_hr/FossilHRWatchAdapter.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil_hr/FossilHRWatchAdapter.java index bdd0a63f6..711aa3251 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil_hr/FossilHRWatchAdapter.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil_hr/FossilHRWatchAdapter.java @@ -943,6 +943,10 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter { @Override public void setMusicInfo(MusicSpec musicSpec) { + musicSpec = new MusicSpec(musicSpec); + if(musicSpec.album == null) musicSpec.album = ""; + if(musicSpec.artist == null) musicSpec.artist = ""; + if(musicSpec.track == null) musicSpec.track = ""; if ( currentSpec != null && currentSpec.album.equals(musicSpec.album)