Added an animation when adding a song to favorites from the now playing screen.
This commit is contained in:
parent
4db8e8d302
commit
456fc40cd7
7 changed files with 74 additions and 8 deletions
|
|
@ -57,7 +57,7 @@ public class AddToPlaylistDialog extends DialogFragment {
|
|||
CreatePlaylistDialog.create(songs).show(getActivity().getSupportFragmentManager(), "ADD_TO_PLAYLIST");
|
||||
} else {
|
||||
materialDialog.dismiss();
|
||||
PlaylistsUtil.addToPlaylist(getActivity(), songs, playlists.get(i - 1).id);
|
||||
PlaylistsUtil.addToPlaylist(getActivity(), songs, playlists.get(i - 1).id, true);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public class CreatePlaylistDialog extends DialogFragment {
|
|||
if (playlistId != -1 && getActivity() != null) {
|
||||
//noinspection unchecked
|
||||
ArrayList<Song> songs = (ArrayList<Song>) getArguments().getSerializable("songs");
|
||||
PlaylistsUtil.addToPlaylist(getActivity(), songs, playlistId);
|
||||
PlaylistsUtil.addToPlaylist(getActivity(), songs, playlistId, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue