Fix for default language

This commit is contained in:
Materight 2017-07-05 17:25:53 +02:00
commit cee6e6e83a

View file

@ -268,12 +268,12 @@ public class AlbumDetailActivity extends AbsSlidingMusicPanelActivity implements
wikiReady(); wikiReady();
return; return;
} }
else if(call.request().url().queryParameter("lang") != null) { }
if(call.request().url().queryParameter("lang") != null) {
//If the "lang" parameter is set and no wiki is given, retry with default language //If the "lang" parameter is set and no wiki is given, retry with default language
lastFMRestClient.getApiService().getAlbumInfo(getAlbum().getTitle(), getAlbum().getArtistName(), null).enqueue(this); lastFMRestClient.getApiService().getAlbumInfo(getAlbum().getTitle(), getAlbum().getArtistName(), null).enqueue(this);
return; return;
} }
}
wiki = null; wiki = null;
wikiReady(); wikiReady();
} }