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);
}
}
Aggregations