car/src/main/java/androidx/car/drawer/CarDrawerController.java
private void cleanupStackAndShowRoot() {
        while (mAdapterStack.size() > 1) {
            CarDrawerAdapter adapter = mAdapterStack.pop();
            adapter.setTitleChangeListener(null);
            adapter.cleanup();
        }
        setDisplayAdapter(mAdapterStack.peek());
        runLayoutAnimation(NAVIGATE_UP_ANIM);
    }
/** Clears stack down to root adapter and switches to root adapter. */
Clears stack down to root adapter and switches to root adapter.
Clears stack down to root adapter and switches to root adapter .
private void cleanupStackAndShowRoot() {
        while (mAdapterStack.size() > 1) {
            CarDrawerAdapter adapter = mAdapterStack.pop();
            adapter.setTitleChangeListener(null);
            adapter.cleanup();
        }
        setDisplayAdapter(mAdapterStack.peek());
        runLayoutAnimation(NAVIGATE_UP_ANIM);
    }
private void cleanupStackAndShowRoot ( ) { while ( mAdapterStack . size ( ) > 1 ) { CarDrawerAdapter adapter = mAdapterStack . pop ( ) ; adapter . setTitleChangeListener ( null ) ; adapter . cleanup ( ) ; } setDisplayAdapter ( mAdapterStack . peek ( ) ) ; runLayoutAnimation ( NAVIGATE_UP_ANIM ) ; }
Clears stack down to root adapter and switches to root adapter.
Clears stack down to root adapter and switches to root adapter .