mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 22:03:55 +01:00
This reverts commit 3c9b7ba7a8.
This commit is contained in:
parent
3c9b7ba7a8
commit
c8a58bfc2e
9 changed files with 6 additions and 137 deletions
|
|
@ -101,8 +101,6 @@ public class MediaDetailFragment extends CommonsDaggerSupportFragment {
|
|||
SimpleDraweeView image;
|
||||
@BindView(R.id.mediaDetailSpacer)
|
||||
MediaDetailSpacer spacer;
|
||||
@BindView(R.id.mediaDetailCaption)
|
||||
TextView mediaCaption;
|
||||
@BindView(R.id.mediaDetailTitle)
|
||||
TextView title;
|
||||
@BindView(R.id.mediaDetailDesc)
|
||||
|
|
@ -317,7 +315,6 @@ public class MediaDetailFragment extends CommonsDaggerSupportFragment {
|
|||
coordinates.setText(prettyCoordinates(media));
|
||||
uploadedDate.setText(prettyUploadedDate(media));
|
||||
mediaDiscussion.setText(prettyDiscussion(media));
|
||||
mediaCaption.setText(prettyCaption(media));
|
||||
|
||||
categoryNames.clear();
|
||||
categoryNames.addAll(media.getCategories());
|
||||
|
|
@ -519,16 +516,6 @@ public class MediaDetailFragment extends CommonsDaggerSupportFragment {
|
|||
return desc;
|
||||
}
|
||||
}
|
||||
|
||||
private String prettyCaption(Media media) {
|
||||
String caption = media.getCaption().trim();
|
||||
if (caption.equals("")) {
|
||||
return getString(R.string.detail_caption_empty);
|
||||
} else {
|
||||
return caption;
|
||||
}
|
||||
}
|
||||
|
||||
private String prettyDiscussion(Media media) {
|
||||
String disc = media.getDiscussion().trim();
|
||||
if (disc.equals("")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue