LeanbackShowcase/app/src/main/java/androidx/leanback/leanbackshowcase/app/room/di/listener/ListenerModule.java [95:122]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            final Activity currentActivity) {
        return new OnItemViewClickedListener() {
            @Override
            public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item,
                    RowPresenter.ViewHolder rowViewHolder, Row row) {
                if (item instanceof VideoEntity) {
                    Intent intent;
                    Long videoItemId = ((VideoEntity) item).getId();
                    intent = new Intent(currentActivity, LiveDataDetailActivity.class);
                    intent.putExtra(LiveDataDetailActivity.VIDEO_ID, videoItemId);

                    VideoEntity cachedBundle = (VideoEntity) item;

                    intent.putExtra(LiveDataDetailActivity.CACHED_CONTENT, cachedBundle);

                    // enable the scene transition animation when the detail's activity is launched
                    Bundle bundle = ActivityOptionsCompat.makeSceneTransitionAnimation(
                            currentActivity,
                            ((ImageCardView) itemViewHolder.view).getMainImageView(),
                            LiveDataDetailActivity.SHARED_ELEMENT_NAME).toBundle();
                    currentActivity.startActivity(intent, bundle);
                }
            }
        };
    }

    @PerFragment
    @Provides
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



LeanbackShowcase/app/src/main/java/androidx/leanback/leanbackshowcase/app/room/di/listener/ListenerModule.java [126:154]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            final Activity currentActivity) {
        return new OnItemViewClickedListener() {
            @Override
            public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item,
                    RowPresenter.ViewHolder rowViewHolder, Row row) {
                if (item instanceof VideoEntity) {
                    Intent intent;
                    Long videoItemId = ((VideoEntity) item).getId();
                    intent = new Intent(currentActivity, LiveDataDetailActivity.class);
                    intent.putExtra(LiveDataDetailActivity.VIDEO_ID, videoItemId);

                    VideoEntity cachedBundle = (VideoEntity) item;

                    intent.putExtra(LiveDataDetailActivity.CACHED_CONTENT, cachedBundle);

                    // enable the scene transition animation when the detail's activity is launched
                    Bundle bundle = ActivityOptionsCompat.makeSceneTransitionAnimation(
                            currentActivity,
                            ((ImageCardView) itemViewHolder.view).getMainImageView(),
                            LiveDataDetailActivity.SHARED_ELEMENT_NAME).toBundle();
                    currentActivity.startActivity(intent, bundle);
                }
            }
        };
    }


    @PerFragment
    @Provides
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



