mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Add {{location|lat|lng}} template
This commit is contained in:
parent
e196773107
commit
043c12b69b
1 changed files with 3 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ public class Contribution extends Media {
|
|||
private Date timestamp;
|
||||
private int state;
|
||||
private long transferred;
|
||||
private String decimalCoords;
|
||||
|
||||
private boolean isMultiple;
|
||||
|
||||
|
|
@ -62,6 +63,7 @@ public class Contribution extends Media {
|
|||
|
||||
public Contribution(Uri localUri, String remoteUri, String filename, String description, long dataLength, Date dateCreated, Date dateUploaded, String creator, String editSummary, String decimalCoords) {
|
||||
super(localUri, remoteUri, filename, description, dataLength, dateCreated, dateUploaded, creator);
|
||||
this.decimalCoords = decimalCoords;
|
||||
this.editSummary = editSummary;
|
||||
timestamp = new Date(System.currentTimeMillis());
|
||||
}
|
||||
|
|
@ -142,6 +144,7 @@ public class Contribution extends Media {
|
|||
}
|
||||
buffer
|
||||
.append("}}").append("\n")
|
||||
.append("{{Location|").append(decimalCoords).append("}}").append("\n")
|
||||
.append("== {{int:license-header}} ==\n")
|
||||
.append(Utils.licenseTemplateFor(getLicense())).append("\n\n")
|
||||
.append("{{Uploaded from Mobile|platform=Android|version=").append(CommonsApplication.APPLICATION_VERSION).append("}}\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue