use of io.recom.howabout.category.music.fragment.RecommendedTrackListFragment in project howabout-android by recomio.
the class RecommendedTrackListActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle bundle = getIntent().getExtras();
trackId = bundle.getString("trackId");
trackTitle = bundle.getString("trackTitle");
artistName = bundle.getString("artistName");
thumbnailUrl = bundle.getString("thumbnailUrl");
ActionBar actionBar = getSupportActionBar();
actionBar.setTitle(trackTitle);
actionBar.setSubtitle(artistName);
recommendedTrackListFragment = new RecommendedTrackListFragment();
Bundle recommendedTrackListFragmentBundle = new Bundle();
recommendedTrackListFragmentBundle.putString("trackId", trackId);
recommendedTrackListFragment.setArguments(recommendedTrackListFragmentBundle);
getSupportFragmentManager().beginTransaction().replace(R.id.contentView, recommendedTrackListFragment, "music_recommend").commit();
}
Aggregations