mirror of
https://github.com/gmbrax/MediaManager-core.git
synced 2026-11-09 14:00:17 +00:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8119530bef | ||
|
|
09d20efba6 | ||
|
|
bcd03fc7ce | ||
|
|
d70fae0719 | ||
|
|
dccbfcf546 |
@@ -98,9 +98,14 @@ public class Album {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void removeGenre(Genre genre) {
|
public void removeGenre(Genre genre) {
|
||||||
|
if (genre == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
albumGenres.removeIf(ag ->
|
||||||
ag.getGenre() != null &&
|
ag.getGenre() != null &&
|
||||||
ag.getGenre().getId() != null &&
|
ag.getGenre().getId() != null &&
|
||||||
ag.getGenre().getId().equals(genre.getId())
|
ag.getGenre().getId().equals(genre.getId())
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Método conveniente para pegar só os gêneros
|
// Método conveniente para pegar só os gêneros
|
||||||
|
|||||||
Reference in New Issue
Block a user