Search in sources :

Example 1 with PlayerFragment

use of com.zype.android.ui.player.v2.PlayerFragment in project zype-android by zype.

the class VideoDetailActivity method showPlayerFragment.

private void showPlayerFragment() {
    showProgress();
    PlayerFragment fragment = PlayerFragment.newInstance(getIntent().getStringExtra(EXTRA_VIDEO_ID));
    FragmentManager fragmentManager = getSupportFragmentManager();
    FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
    fragmentTransaction.replace(R.id.player_container, fragment, PlayerFragment.TAG);
    fragmentTransaction.commit();
}
Also used : FragmentManager(androidx.fragment.app.FragmentManager) FragmentTransaction(androidx.fragment.app.FragmentTransaction) PlayerFragment(com.zype.android.ui.player.v2.PlayerFragment)

Aggregations

FragmentManager (androidx.fragment.app.FragmentManager)1 FragmentTransaction (androidx.fragment.app.FragmentTransaction)1 PlayerFragment (com.zype.android.ui.player.v2.PlayerFragment)1