Search in sources :

Example 6 with Shadowbox

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

the class TumblrFull method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Bundle bundle = this.getArguments();
    i = bundle.getInt("page", 0);
    if (((Shadowbox) getActivity()).subredditPosts == null || ((Shadowbox) getActivity()).subredditPosts.getPosts().size() < bundle.getInt("page", 0)) {
        getActivity().finish();
    } else {
        s = ((Shadowbox) getActivity()).subredditPosts.getPosts().get(bundle.getInt("page", 0));
    }
}
Also used : Shadowbox(me.ccrama.redditslide.Activities.Shadowbox) Bundle(android.os.Bundle)

Aggregations

Shadowbox (me.ccrama.redditslide.Activities.Shadowbox)6 Bundle (android.os.Bundle)4 ProgressBar (android.widget.ProgressBar)2 MediaVideoView (me.ccrama.redditslide.Views.MediaVideoView)2 GifUtils (me.ccrama.redditslide.util.GifUtils)2