package ca.ualberta.cs.swapmyride.Misc;

import android.content.Context;

import ca.ualberta.cs.swapmyride.Model.Photo;

/**
 * Created by Garry on 2015-11-30.
 */
public class DefaultPhotoSingleton {
    private static DefaultPhotoSingleton ourInstance = null;
    private Photo defaultPhoto;

    public void init(Context context){
        this.defaultPhoto = new Photo(context);
    }

    public Photo getDefaultPhoto(){
        return defaultPhoto;
    }

    public static DefaultPhotoSingleton getInstance() {
        if(ourInstance == null){
            ourInstance = new DefaultPhotoSingleton();
        }
        return ourInstance;
    }

    private DefaultPhotoSingleton() {
    }
}

@@ -375,16 +375,64 @@
 ntext);%0A
+        this.defaultPhoto.getUid().setId(%22-1%22);%0A
     %7D%0A%0A 

Update the photo in DefaultPhotoSingleton to have id "-1" for easy identification.