1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-15 06:29:24 +01:00

Fossil HR: fixed null music spec

This commit is contained in:
Daniel Dakhno 2022-05-28 02:10:45 +02:00
parent d08fe6ebf7
commit 93e05e8dd6

View File

@ -943,6 +943,10 @@ public class FossilHRWatchAdapter extends FossilWatchAdapter {
@Override @Override
public void setMusicInfo(MusicSpec musicSpec) { 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 ( if (
currentSpec != null currentSpec != null
&& currentSpec.album.equals(musicSpec.album) && currentSpec.album.equals(musicSpec.album)