Fix #1850: Show media talk page in media details (#2560)

This commit is contained in:
Shubham Pinjwani 2019-03-17 22:41:34 +05:30 committed by Adam Jones
parent 3b7b6f91a2
commit 31c688860d
7 changed files with 89 additions and 0 deletions

View file

@ -39,6 +39,7 @@ public class Media implements Parcelable {
protected String imageUrl;
protected String filename;
protected String description; // monolingual description on input...
protected String discussion;
protected long dataLength;
protected Date dateCreated;
protected @Nullable Date dateUploaded;
@ -195,6 +196,22 @@ public class Media implements Parcelable {
this.filename = filename;
}
/**
* Sets the discussion of the file.
* @param discussion
*/
public void setDiscussion(String discussion) {
this.discussion = discussion;
}
/**
* Gets the file discussion as a string.
* @return file discussion as a string
*/
public String getDiscussion() {
return discussion;
}
/**
* Gets the file description.
* @return file description as a string