src/main/java/de/blau/android/easyedit/EasyEditActionModeCallback.java
/**
     * Replace the menu used by the action mode by our toolbar if necessary
     * 
     * @param menu original menu
     * @param actionMode the current action mode
     * @param callback the callback we are currently in
     * @return the Menu
     */
Replace the menu used by the action mode by our toolbar if necessary

@param menu original menu
@param actionMode the current action mode
@param callback the callback we are currently in
@return the Menu
Replace the menu used by the action mode by our toolbar if necessary @param menu original menu @param actionMode the current action mode @param callback the callback we are currently in @return the Menu
protected Menu replaceMenu(Menu menu, final ActionMode actionMode, final ActionMode.Callback callback) {
        if (cabBottomBar != null) {
            menu = cabBottomBar.getMenu();
            cabBottomBar.setOnMenuItemClickListener(item -> callback.onActionItemClicked(actionMode, item));
        }
        return menu;
    }
protected Menu replaceMenu ( Menu menu , final ActionMode actionMode , final ActionMode . Callback callback ) { if ( cabBottomBar != null ) { menu = cabBottomBar . getMenu ( ) ; cabBottomBar . setOnMenuItemClickListener ( item -> callback . onActionItemClicked ( actionMode , item ) ) ; } return menu ; }
Replace the menu used by the action mode by our toolbar if necessary
Replace the menu used by the action mode by our toolbar if necessary