Search in sources :

Example 1 with SimpleMusic

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

the class MusicActivity 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 musicId = intent.getLongExtra(EXTRA_MUSIC_ID, -1);
        SimpleMusic simpleMusic = intent.getParcelableExtra(EXTRA_SIMPLE_MUSIC);
        Music music = intent.getParcelableExtra(EXTRA_MUSIC);
        FragmentUtils.add(MusicFragment.newInstance(musicId, simpleMusic, music), this, android.R.id.content);
    }
}
Also used : SimpleMusic(me.zhanghai.android.douya.network.api.info.frodo.SimpleMusic) Music(me.zhanghai.android.douya.network.api.info.frodo.Music) SimpleMusic(me.zhanghai.android.douya.network.api.info.frodo.SimpleMusic) Intent(android.content.Intent)

Aggregations

Intent (android.content.Intent)1 Music (me.zhanghai.android.douya.network.api.info.frodo.Music)1 SimpleMusic (me.zhanghai.android.douya.network.api.info.frodo.SimpleMusic)1