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:
parent
d08fe6ebf7
commit
93e05e8dd6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user