Program: 26627
Project: 26627
Buggy source:
void afterViews(){
  final EditText editText=(EditText)findViewById(R.id.entryText);
  final ImageButton addBtn=(ImageButton)findViewById(R.id.addBtn);
  final ImageView voiceBtn=(ImageView)findViewById(R.id.voiceBtn);
  mToolbar=(Toolbar)findViewById(R.id.toolbar);
  mToolbar.setTitle(getResources().getString(R.string.app_name));
  mToolbar.setTitleTextColor(Color.WHITE);
  mToolbar.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener(){
    @Override public boolean onMenuItemClick(    MenuItem item){
      return onOptionsItemSelected(item);
    }
  }
);
  mToolbar.inflateMenu(R.menu.activity_main);
  addBtn.setEnabled(false);
  addBtn.setClickable(false);
  checkmarkGray.setSelected(true);
  icon=CHECKMARK_GRAY;
  editText.requestFocus();
  getWindow().setSoftInputMode(LayoutParams.SOFT_INPUT_STATE_VISIBLE);
  int theme=R.style.TransAppTheme;
  if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean("String_Node_Str",false)) {
    theme=R.style.TransDarkAppTheme;
  }
  TypedArray a=getTheme().obtainStyledAttributes(theme,new int[]{R.attr.ic_send});
  final int sendResourceId=a.getResourceId(0,0);
  TypedArray b=getTheme().obtainStyledAttributes(theme,new int[]{R.attr.ic_send_disabled});
  final int disabledResourceId=b.getResourceId(0,0);
  editText.addTextChangedListener(new TextWatcher(){
    public void afterTextChanged(    Editable s){
      if (editText.length() > 0) {
        addBtn.setImageDrawable(getResources().getDrawable(sendResourceId));
        addBtn.setEnabled(true);
        addBtn.setClickable(true);
        voiceBtn.setVisibility(View.GONE);
      }
 else {
        addBtn.setImageDrawable(getResources().getDrawable(disabledResourceId));
        addBtn.setEnabled(false);
        addBtn.setClickable(false);
        voiceBtn.setVisibility(View.VISIBLE);
      }
    }
    public void beforeTextChanged(    CharSequence s,    int start,    int count,    int after){
    }
    public void onTextChanged(    CharSequence s,    int start,    int before,    int count){
    }
  }
);
  if (shareInfo != null) {
    Log.i(TAG,"String_Node_Str");
    shareFields(shareInfo);
  }
  reminderCalendar=Calendar.getInstance();
  reminderCalendar.set(Calendar.SECOND,0);
  reminderCalendar.set(Calendar.HOUR,reminderCalendar.get(Calendar.HOUR) + 1);
  dateBtn.setText(DateFormat.getDateFormat(this).format(reminderCalendar.getTime()));
  TimeBtn.setText(DateFormat.getTimeFormat(this).format(reminderCalendar.getTime()));
  if (savedId != -1) {
    Log.i(TAG,"String_Node_Str" + savedId);
    updateFields();
  }
}

Fixed version (ground truth):
void afterViews(){
  final EditText editText=(EditText)findViewById(R.id.entryText);
  final ImageButton addBtn=(ImageButton)findViewById(R.id.addBtn);
  final ImageView voiceBtn=(ImageView)findViewById(R.id.voiceBtn);
  mToolbar=(Toolbar)findViewById(R.id.toolbar);
  mToolbar.setTitle(getResources().getString(R.string.app_name));
  mToolbar.setTitleTextColor(Color.WHITE);
  mToolbar.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener(){
    @Override public boolean onMenuItemClick(    MenuItem item){
      return onOptionsItemSelected(item);
    }
  }
);
  mToolbar.inflateMenu(R.menu.activity_main);
  addBtn.setEnabled(false);
  addBtn.setClickable(false);
  checkmarkGray.setSelected(true);
  icon=NotificationItem.CHECKMARK_GRAY;
  editText.requestFocus();
  getWindow().setSoftInputMode(LayoutParams.SOFT_INPUT_STATE_VISIBLE);
  int theme=R.style.TransAppTheme;
  if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean("String_Node_Str",false)) {
    theme=R.style.TransDarkAppTheme;
  }
  TypedArray a=getTheme().obtainStyledAttributes(theme,new int[]{R.attr.ic_send});
  final int sendResourceId=a.getResourceId(0,0);
  TypedArray b=getTheme().obtainStyledAttributes(theme,new int[]{R.attr.ic_send_disabled});
  final int disabledResourceId=b.getResourceId(0,0);
  editText.addTextChangedListener(new TextWatcher(){
    public void afterTextChanged(    Editable s){
      if (editText.length() > 0) {
        addBtn.setImageDrawable(getResources().getDrawable(sendResourceId));
        addBtn.setEnabled(true);
        addBtn.setClickable(true);
        voiceBtn.setVisibility(View.GONE);
      }
 else {
        addBtn.setImageDrawable(getResources().getDrawable(disabledResourceId));
        addBtn.setEnabled(false);
        addBtn.setClickable(false);
        voiceBtn.setVisibility(View.VISIBLE);
      }
    }
    public void beforeTextChanged(    CharSequence s,    int start,    int count,    int after){
    }
    public void onTextChanged(    CharSequence s,    int start,    int before,    int count){
    }
  }
);
  if (shareInfo != null) {
    Log.i(TAG,"String_Node_Str");
    shareFields(shareInfo);
  }
  reminderCalendar=Calendar.getInstance();
  reminderCalendar.set(Calendar.SECOND,0);
  reminderCalendar.set(Calendar.HOUR,reminderCalendar.get(Calendar.HOUR) + 1);
  dateBtn.setText(DateFormat.getDateFormat(this).format(reminderCalendar.getTime()));
  TimeBtn.setText(DateFormat.getTimeFormat(this).format(reminderCalendar.getTime()));
  if (savedId != -1) {
    Log.i(TAG,"String_Node_Str" + savedId);
    updateFields();
  }
}