use of com.zype.android.ui.video_details.fragments.video.MediaControlInterface in project zype-android by zype.
the class BaseVideoActivity method showFragment.
private void showFragment(Fragment fragment) {
Logger.d("showFragment()");
hideProgress();
if (mInterface != null) {
mInterface.stop();
}
FragmentManager fragmentManager = getSupportFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
if (fragment instanceof MediaControlInterface) {
mInterface = (MediaControlInterface) fragment;
}
fragmentTransaction.replace(R.id.video_container, fragment, FRAGMENT_TAG_PLAYER);
fragmentTransaction.commit();
}
Aggregations