Update MainActivity.java

Change         if (id == R.id.action_settings) {
            return true;
        }
        return super.onOptionsItemSelected(item); 

to 

        if (id == R.id.action_settings) {
            return true;
        }else{
            return super.onOptionsItemSelected(item);
        }