Displays desc, categories and license, but desc and cats are wrong

This commit is contained in:
misaochan 2016-07-07 18:31:32 +12:00
parent 29e5ba3934
commit 916141287f

View file

@ -262,6 +262,21 @@ public class MediaDetailFragment extends Fragment {
if(bitmap.hasAlpha()) {
image.setBackgroundResource(android.R.color.white);
}
// Fill some fields
desc.setText(prettyDescription(media));
license.setText(prettyLicense(media));
categoryNames.removeAll(categoryNames);
categoryNames.addAll(media.getCategories());
categoriesLoaded = true;
categoriesPresent = (categoryNames.size() > 0);
if (!categoriesPresent) {
// Stick in a filler element.
categoryNames.add(getString(R.string.detail_panel_cats_none));
}
rebuildCatList();
}
public void onLoadingCancelled(String s, View view) {