app/src/main/java/fr/free/nrw/commons/category/CategoryImagesActivity.java
@Override
    public boolean onOptionsItemSelected(MenuItem item) {

        // Handle item selection
        switch (item.getItemId()) {
            case R.id.action_search:
                NavigationBaseActivity.startActivityWithFlags(this, SearchActivity.class);
                return true;
            default:
                return super.onOptionsItemSelected(item);
        }
    }
/**
     * This method handles the logic on ItemSelect in toolbar menu
     * Currently only 1 choice is available to open search page of the app
     */
This method handles the logic on ItemSelect in toolbar menu
Currently only 1 choice is available to open search page of the app
This method handles the logic on ItemSelect in toolbar menu Currently only 1 choice is available to open search page of the app
@Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case R.id.action_search:
                NavigationBaseActivity.startActivityWithFlags(this, SearchActivity.class);
                return true;
            default:
                return super.onOptionsItemSelected(item);
        }
    }
@ Override public boolean onOptionsItemSelected ( MenuItem item ) { switch ( item . getItemId ( ) ) { case R . id . action_search : NavigationBaseActivity . startActivityWithFlags ( this , SearchActivity . class ) ; return true ; default : return super . onOptionsItemSelected ( item ) ; } }
This method handles the logic on ItemSelect in toolbar menu
 Currently only 1 choice is available to open search page of the app
This method handles the logic on ItemSelect in toolbar menu Currently only 1 choice is available to open search page of the app
// Handle item selection