Search in sources :

Example 1 with SimpleMovie

use of me.zhanghai.android.douya.network.api.info.frodo.SimpleMovie in project Douya by DreaminginCodeZH.

the class MovieActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // Calls ensureSubDecor().
    findViewById(android.R.id.content);
    if (savedInstanceState == null) {
        Intent intent = getIntent();
        long movieId = intent.getLongExtra(EXTRA_MOVIE_ID, -1);
        SimpleMovie simpleMovie = intent.getParcelableExtra(EXTRA_SIMPLE_MOVIE);
        Movie movie = intent.getParcelableExtra(EXTRA_MOVIE);
        FragmentUtils.add(MovieFragment.newInstance(movieId, simpleMovie, movie), this, android.R.id.content);
    }
}
Also used : SimpleMovie(me.zhanghai.android.douya.network.api.info.frodo.SimpleMovie) Movie(me.zhanghai.android.douya.network.api.info.frodo.Movie) SimpleMovie(me.zhanghai.android.douya.network.api.info.frodo.SimpleMovie) Intent(android.content.Intent)

Aggregations

Intent (android.content.Intent)1 Movie (me.zhanghai.android.douya.network.api.info.frodo.Movie)1 SimpleMovie (me.zhanghai.android.douya.network.api.info.frodo.SimpleMovie)1