public boolean onOptionsItemSelected()

in app/src/main/java/org/apache/taverna/mobile/ui/workflowdetail/WorkflowDetailFragment.java [201:217]


    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case R.id.licence:

                if (licenceId == null) {
                    showErrorSnackBar("Please wait");
                } else if (licenceId.isEmpty()) {
                    showErrorSnackBar("No Licence Found");
                } else {
                    mWorkflowDetailPresenter.loadLicenseDetail(licenceId);
                }

                return true;
        }
        return super.onOptionsItemSelected(item);

    }