Updated Retrofit 2 to beta2
This commit is contained in:
parent
ce07648ff6
commit
5cd4b7a479
3 changed files with 6 additions and 4 deletions
|
|
@ -64,6 +64,7 @@ import butterknife.Bind;
|
|||
import butterknife.ButterKnife;
|
||||
import retrofit.Callback;
|
||||
import retrofit.Response;
|
||||
import retrofit.Retrofit;
|
||||
|
||||
/**
|
||||
* Be careful when changing things in this Activity!
|
||||
|
|
@ -257,7 +258,7 @@ public class ArtistDetailActivity extends AbsSlidingMusicPanelActivity implement
|
|||
private void loadBiography() {
|
||||
lastFMRestClient.getApiService().getArtistInfo(artist.name, null).enqueue(new Callback<LastFmArtist>() {
|
||||
@Override
|
||||
public void onResponse(Response<LastFmArtist> response) {
|
||||
public void onResponse(Response<LastFmArtist> response, Retrofit retrofit) {
|
||||
LastFmArtist lastFmArtist = response.body();
|
||||
if (lastFmArtist.getArtist() != null) {
|
||||
String bio = lastFmArtist.getArtist().getBio().getContent();
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ import butterknife.Bind;
|
|||
import butterknife.ButterKnife;
|
||||
import retrofit.Callback;
|
||||
import retrofit.Response;
|
||||
import retrofit.Retrofit;
|
||||
|
||||
public class AlbumTagEditorActivity extends AbsTagEditorActivity implements TextWatcher {
|
||||
|
||||
|
|
@ -101,7 +102,7 @@ public class AlbumTagEditorActivity extends AbsTagEditorActivity implements Text
|
|||
}
|
||||
lastFMRestClient.getApiService().getAlbumInfo(albumTitleStr, albumArtistNameStr).enqueue(new Callback<LastFmAlbum>() {
|
||||
@Override
|
||||
public void onResponse(final Response<LastFmAlbum> response) {
|
||||
public void onResponse(final Response<LastFmAlbum> response, Retrofit retrofit) {
|
||||
LastFmAlbum lastFmAlbum = response.body();
|
||||
if (lastFmAlbum.getAlbum() != null) {
|
||||
ImageLoader.getInstance().loadImage(LastFMUtil.getLargestAlbumImageUrl(lastFmAlbum.getAlbum().getImage()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue