Added an animation when adding a song to favorites from the now playing screen.

This commit is contained in:
Karim Abou Zeid 2015-06-28 15:14:20 +02:00
commit 456fc40cd7
7 changed files with 74 additions and 8 deletions

View file

@ -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);
}
}
})

View file

@ -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);
}
}
}