Search in sources :

Example 1 with GsonHelper

use of com.bourke.glimmr.common.GsonHelper in project glimmr by brk3.

the class CommentsFragment method onSaveInstanceState.

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    new GsonHelper(mActivity).marshallObject(mPhoto, outState, KEY_PHOTO);
}
Also used : GsonHelper(com.bourke.glimmr.common.GsonHelper)

Example 2 with GsonHelper

use of com.bourke.glimmr.common.GsonHelper in project glimmr by brk3.

the class PhotoStreamGridFragment method onSaveInstanceState.

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    new GsonHelper(mActivity).marshallObject(mUserToView, outState, KEY_USER);
}
Also used : GsonHelper(com.bourke.glimmr.common.GsonHelper)

Example 3 with GsonHelper

use of com.bourke.glimmr.common.GsonHelper in project glimmr by brk3.

the class PhotosetsFragment method onSaveInstanceState.

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    new GsonHelper(mActivity).marshallObject(mUserToView, outState, KEY_USER);
}
Also used : GsonHelper(com.bourke.glimmr.common.GsonHelper)

Example 4 with GsonHelper

use of com.bourke.glimmr.common.GsonHelper in project glimmr by brk3.

the class AddToPhotosetDialogFragment method onSaveInstanceState.

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    new GsonHelper(mActivity).marshallObject(mPhotoset, outState, KEY_PHOTOSET);
}
Also used : GsonHelper(com.bourke.glimmr.common.GsonHelper)

Example 5 with GsonHelper

use of com.bourke.glimmr.common.GsonHelper in project glimmr by brk3.

the class AddToGroupDialogFragment method onSaveInstanceState.

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    new GsonHelper(mActivity).marshallObject(mGroup, outState, KEY_GROUP);
}
Also used : GsonHelper(com.bourke.glimmr.common.GsonHelper)

Aggregations

GsonHelper (com.bourke.glimmr.common.GsonHelper)17 Gson (com.google.gson.Gson)3 Type (java.lang.reflect.Type)3 Intent (android.content.Intent)2 Collection (java.util.Collection)2 SharedPreferences (android.content.SharedPreferences)1 Bundle (android.os.Bundle)1 LoadPhotoInfoTask (com.bourke.glimmr.tasks.LoadPhotoInfoTask)1 TypeToken (com.google.gson.reflect.TypeToken)1 Item (com.googlecode.flickrjandroid.activity.Item)1 Photo (com.googlecode.flickrjandroid.photos.Photo)1 ArrayList (java.util.ArrayList)1