MiniumApps/launcher3/src/main/java/co/siempo/phone/activities/NotesEditActivity.java
/**
     * Initialize toolbar with required components such as
     * - title, navigation icon + listener, menu/OnMenuItemClickListener, menuHideBody -
     */
Initialize toolbar with required components such as
- title, navigation icon + listener, menu/OnMenuItemClickListener, menuHideBody
Initialize toolbar with required components such as - title navigation icon + listener menu / OnMenuItemClickListener menuHideBody
@SuppressLint("PrivateResource")
    protected void initToolbar() {
        toolbar.setTitle("");
        toolbar.setNavigationIcon(R.drawable.abc_ic_ab_back_material);
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onBackPressed();
            }
        });
        toolbar.inflateMenu(R.menu.menu_edit);
        toolbar.setOnMenuItemClickListener(this);
        Menu menu = toolbar.getMenu();
        if (menu != null)
            menuHideBody = menu.findItem(R.id.action_hide_show_body);
    }
@ SuppressLint ( "PrivateResource" ) protected void initToolbar ( ) { toolbar . setTitle ( "" ) ; toolbar . setNavigationIcon ( R . drawable . abc_ic_ab_back_material ) ; toolbar . setNavigationOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { onBackPressed ( ) ; } } ) ; toolbar . inflateMenu ( R . menu . menu_edit ) ; toolbar . setOnMenuItemClickListener ( this ) ; Menu menu = toolbar . getMenu ( ) ; if ( menu != null ) menuHideBody = menu . findItem ( R . id . action_hide_show_body ) ; }
Initialize toolbar with required components such as
 - title, navigation icon + listener, menu/OnMenuItemClickListener, menuHideBody
Initialize toolbar with required components such as - title navigation icon + listener menu / OnMenuItemClickListener menuHideBody
// Set a 'Back' navigation icon in the Toolbar and handle the click // Inflate menu_edit to be displayed in the toolbar // Set an OnMenuItemClickListener to handle menu item clicks