mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Note places in code that need changing
This commit is contained in:
parent
7dd512b2d9
commit
88ced27ac8
3 changed files with 4 additions and 0 deletions
|
|
@ -130,6 +130,8 @@ public class Contribution extends Media {
|
|||
public String getPageContents() {
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
SimpleDateFormat isoFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||
|
||||
//TODO: Add location template immediately after Information template. {{Location|37.51136|-77.602615}}
|
||||
buffer
|
||||
.append("== {{int:filedesc}} ==\n")
|
||||
.append("{{Information\n")
|
||||
|
|
|
|||
|
|
@ -112,6 +112,7 @@ public class ShareActivity
|
|||
Log.d(TAG, "Cache the categories found");
|
||||
}
|
||||
|
||||
//TODO: Pass in coords here? Need to be in format 37.51136|-77.602615
|
||||
uploadController.startUpload(title, mediaUri, description, mimeType, source, new UploadController.ContributionUploadProgress() {
|
||||
public void onUploadStarted(Contribution contribution) {
|
||||
ShareActivity.this.contribution = contribution;
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ public class UploadController {
|
|||
public void startUpload(String title, Uri mediaUri, String description, String mimeType, String source, ContributionUploadProgress onComplete) {
|
||||
Contribution contribution;
|
||||
|
||||
//TODO: Modify this to include coords
|
||||
contribution = new Contribution(mediaUri, null, title, description, -1, null, null, app.getCurrentAccount().name, CommonsApplication.DEFAULT_EDIT_SUMMARY);
|
||||
|
||||
contribution.setTag("mimeType", mimeType);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue