leanback/src/main/java/androidx/leanback/app/DetailsSupportFragmentBackgroundController.java
void onStart() {
        if (!mCanUseHost) {
            mCanUseHost = true;
            if (mPlaybackGlue != null) {
                mPlaybackGlue.setHost(createGlueHost());
                mLastVideoSupportFragmentForGlueHost = findOrCreateVideoSupportFragment();
            }
        }
        if (mPlaybackGlue != null && mPlaybackGlue.isPrepared()) {
            mPlaybackGlue.play();
        }
    }
/**
     * When fragment is started and no running transition. First set host if not yet set, second
     * start playing if it was paused before.
     */
When fragment is started and no running transition. First set host if not yet set, second
start playing if it was paused before.
When fragment is started and no running transition . First set host if not yet set second start playing if it was paused before .
void onStart() {
        if (!mCanUseHost) {
            mCanUseHost = true;
            if (mPlaybackGlue != null) {
                mPlaybackGlue.setHost(createGlueHost());
                mLastVideoSupportFragmentForGlueHost = findOrCreateVideoSupportFragment();
            }
        }
        if (mPlaybackGlue != null && mPlaybackGlue.isPrepared()) {
            mPlaybackGlue.play();
        }
    }
void onStart ( ) { if ( ! mCanUseHost ) { mCanUseHost = true ; if ( mPlaybackGlue != null ) { mPlaybackGlue . setHost ( createGlueHost ( ) ) ; mLastVideoSupportFragmentForGlueHost = findOrCreateVideoSupportFragment ( ) ; } } if ( mPlaybackGlue != null && mPlaybackGlue . isPrepared ( ) ) { mPlaybackGlue . play ( ) ; } }
When fragment is started and no running transition.
When fragment is started and no running transition .