mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +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 Date timestamp;
|
||||||
private int state;
|
private int state;
|
||||||
private long transferred;
|
private long transferred;
|
||||||
|
private String decimalCoords;
|
||||||
|
|
||||||
private boolean isMultiple;
|
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) {
|
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);
|
super(localUri, remoteUri, filename, description, dataLength, dateCreated, dateUploaded, creator);
|
||||||
|
this.decimalCoords = decimalCoords;
|
||||||
this.editSummary = editSummary;
|
this.editSummary = editSummary;
|
||||||
timestamp = new Date(System.currentTimeMillis());
|
timestamp = new Date(System.currentTimeMillis());
|
||||||
}
|
}
|
||||||
|
|
@ -142,6 +144,7 @@ public class Contribution extends Media {
|
||||||
}
|
}
|
||||||
buffer
|
buffer
|
||||||
.append("}}").append("\n")
|
.append("}}").append("\n")
|
||||||
|
.append("{{Location|").append(decimalCoords).append("}}").append("\n")
|
||||||
.append("== {{int:license-header}} ==\n")
|
.append("== {{int:license-header}} ==\n")
|
||||||
.append(Utils.licenseTemplateFor(getLicense())).append("\n\n")
|
.append(Utils.licenseTemplateFor(getLicense())).append("\n\n")
|
||||||
.append("{{Uploaded from Mobile|platform=Android|version=").append(CommonsApplication.APPLICATION_VERSION).append("}}\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