Note places in code that need changing

This commit is contained in:
misaochan 2016-09-04 19:28:03 +12:00
parent 7dd512b2d9
commit 88ced27ac8
3 changed files with 4 additions and 0 deletions

View file

@ -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")

View file

@ -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;

View file

@ -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);