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
|
@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)
|
||||||
|
Loading…
Reference in New Issue
Block a user