mirror of
https://github.com/gabehf/tempus.git
synced 2026-03-11 08:21:06 -07:00
Rewriting classes in kotlin
This commit is contained in:
parent
74ec37cb5e
commit
103cd308de
43 changed files with 818 additions and 2325 deletions
|
|
@ -28,12 +28,12 @@ public class ArtistBottomSheetViewModel extends AndroidViewModel {
|
|||
}
|
||||
|
||||
public void setFavorite() {
|
||||
if (artist.isFavorite()) {
|
||||
if (Boolean.TRUE.equals(artist.getStarred())) {
|
||||
albumRepository.unstar(artist.getId());
|
||||
artist.setFavorite(false);
|
||||
artist.setStarred(false);
|
||||
} else {
|
||||
albumRepository.star(artist.getId());
|
||||
artist.setFavorite(true);
|
||||
artist.setStarred(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue