Search in sources :

Example 1 with ShadowboxComments

use of me.ccrama.redditslide.Activities.ShadowboxComments in project Slide by ccrama.

the class MediaFragmentComment method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Bundle bundle = this.getArguments();
    i = bundle.getInt("page");
    s = ((ShadowboxComments) getActivity()).comments.get(i);
    sub = s.comment.getComment().getSubredditName();
    contentUrl = bundle.getString("contentUrl");
    client = Reddit.client;
    gson = new Gson();
    mashapeKey = SecretConstants.getImgurApiKey(getContext());
}
Also used : Bundle(android.os.Bundle) ShadowboxComments(me.ccrama.redditslide.Activities.ShadowboxComments) Gson(com.google.gson.Gson)

Example 2 with ShadowboxComments

use of me.ccrama.redditslide.Activities.ShadowboxComments in project Slide by ccrama.

the class AlbumFullComments method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Bundle bundle = this.getArguments();
    i = bundle.getInt("page", 0);
    s = ((ShadowboxComments) getActivity()).comments.get(i);
}
Also used : Bundle(android.os.Bundle) ShadowboxComments(me.ccrama.redditslide.Activities.ShadowboxComments)

Aggregations

Bundle (android.os.Bundle)2 ShadowboxComments (me.ccrama.redditslide.Activities.ShadowboxComments)2 Gson (com.google.gson.Gson)1