Add comment

This commit is contained in:
Karim Abou Zeid 2017-09-30 13:12:35 +02:00
commit f6f219a9c1
No known key found for this signature in database
GPG key ID: 948B11DC67FD9BAF

View file

@ -357,14 +357,14 @@ public class ArtistDetailActivity extends AbsSlidingMusicPanelActivity implement
.positiveText(android.R.string.ok) .positiveText(android.R.string.ok)
.build(); .build();
} }
if (Util.isAllowedToDownloadMetadata(ArtistDetailActivity.this)) { if (Util.isAllowedToDownloadMetadata(ArtistDetailActivity.this)) { // wiki should've been already downloaded
if (biography != null) { if (biography != null) {
biographyDialog.setContent(biography); biographyDialog.setContent(biography);
biographyDialog.show(); biographyDialog.show();
} else { } else {
Toast.makeText(ArtistDetailActivity.this, getResources().getString(R.string.biography_unavailable), Toast.LENGTH_SHORT).show(); Toast.makeText(ArtistDetailActivity.this, getResources().getString(R.string.biography_unavailable), Toast.LENGTH_SHORT).show();
} }
} else { } else { // force download
biographyDialog.show(); biographyDialog.show();
loadBiography(); loadBiography();
} }