private void initializeTvShowDraggableFragment() {
        TvShowDraggableFragment tvShowDraggableFragment =
                (TvShowDraggableFragment) getSupportFragmentManager().findFragmentById(
                        R.id.f_tv_show_draggable);
    /*
     * If both fragments are visible we have to disable saved instance state in draggable
     * fragment because there are different fragment configurations in activity_main.xml
     * when the device is in portrait or landscape. Review layout- directory to get more
     * information.
     */
        if (tvShowFragment != null && tvShowDraggableFragment != null) {
            tvShowDraggableFragment.disableSaveInstanceState();
        }
    }
Core activity of this application. This activity receives the launch intent and works as core of
the sample application.
app/src/main/java/com/github/pedrovgs/effectiveandroidui/ui/activity/MainActivity.java