car/src/main/java/androidx/car/drawer/CarDrawerController.java
public boolean onOptionsItemSelected(MenuItem item) {
        // Handle home-click and see if we can navigate up in the drawer.
        if (item != null && item.getItemId() == android.R.id.home && maybeHandleUpClick()) {
            return true;
        }

        // DrawerToggle gets next chance to handle up-clicks (and any other clicks).
        return mDrawerToggle.onOptionsItemSelected(item);
    }
/**
     * An analog to an Activity's {@code onOptionsItemSelected()}. This method should be called
     * when the Activity's method is called and will return {@code true} if the selection has
     * been handled.
     *
     * @return {@code true} if the item processing was handled by this class.
     */
An analog to an Activity's  onOptionsItemSelected(). This method should be called
when the Activity's method is called and will return  true if the selection has
been handled.

@return  true if the item processing was handled by this class.
An analog to an Activity ' s onOptionsItemSelected () . This method should be called when the Activity ' s method is called and will return true if the selection has been handled . @return true if the item processing was handled by this class .
public boolean onOptionsItemSelected(MenuItem item) {
        if (item != null && item.getItemId() == android.R.id.home && maybeHandleUpClick()) {
            return true;
        }
        return mDrawerToggle.onOptionsItemSelected(item);
    }
public boolean onOptionsItemSelected ( MenuItem item ) { if ( item != null && item . getItemId ( ) == android . R . id . home && maybeHandleUpClick ( ) ) { return true ; } return mDrawerToggle . onOptionsItemSelected ( item ) ; }
An analog to an Activity's {@code onOptionsItemSelected()}.
An analog to an Activity ' s { @code onOptionsItemSelected () } .
// Handle home-click and see if we can navigate up in the drawer. // DrawerToggle gets next chance to handle up-clicks (and any other clicks).