@Override public void onClick(View v) { NavigationUtils.navigateToAlbum( mContext, arraylist.get(getAdapterPosition()).id, new Pair<View, String>(albumArt, "transition_album_art" + getAdapterPosition())); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_nowplaying); SharedPreferences prefs = getSharedPreferences(Constants.FRAGMENT_ID, Context.MODE_PRIVATE); String fragmentID = prefs.getString(Constants.NOWPLAYING_FRAGMENT_ID, Constants.TIMBER3); Fragment fragment = NavigationUtils.getFragmentForNowplayingID(fragmentID); FragmentManager fragmentManager = getSupportFragmentManager(); fragmentManager.beginTransaction().replace(R.id.container, fragment).commit(); }
@Override public void onClick(View v) { NavigationUtils.navigateToArtist(mContext, arraylist.get(getAdapterPosition()).id); }