Program: 8229
Project: 8229
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  final Bundle extras=getIntent().getExtras();
  long[] selectedMasterKeyIds=getIntent().getLongArrayExtra(EXTRA_SELECTED_MASTER_KEY_IDS);
  boolean noUserIdsCheck=getIntent().getBooleanExtra(EXTRA_NO_USER_IDS_CHECK,true);
  ArrayList<String> missingEmails=getIntent().getStringArrayListExtra(EXTRA_MISSING_EMAILS);
  ArrayList<String> duplicateEmails=getIntent().getStringArrayListExtra(EXTRA_DUPLICATE_EMAILS);
  SpannableStringBuilder ssb=new SpannableStringBuilder();
  final SpannableString textIntro=new SpannableString(noUserIdsCheck ? getString(R.string.api_select_pub_keys_text_no_user_ids) : getString(R.string.api_select_pub_keys_text));
  textIntro.setSpan(new StyleSpan(Typeface.BOLD),0,textIntro.length(),Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
  ssb.append(textIntro);
  if (missingEmails != null && missingEmails.size() > 0) {
    ssb.append("String_Node_Str");
    ssb.append(getString(R.string.api_select_pub_keys_missing_text));
    ssb.append("String_Node_Str");
    for (    String emails : missingEmails) {
      SpannableString ss=new SpannableString(emails + "String_Node_Str");
      ss.setSpan(new BulletSpan(15,Color.BLACK),0,ss.length(),Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
      ssb.append(ss);
    }
  }
  if (duplicateEmails != null && duplicateEmails.size() > 0) {
    ssb.append("String_Node_Str");
    ssb.append(getString(R.string.api_select_pub_keys_dublicates_text));
    ssb.append("String_Node_Str");
    for (    String email : duplicateEmails) {
      SpannableString ss=new SpannableString(email + "String_Node_Str");
      ss.setSpan(new BulletSpan(15,Color.BLACK),0,ss.length(),Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
      ssb.append(ss);
    }
  }
  setFullScreenDialogDoneClose(R.string.btn_okay,new View.OnClickListener(){
    @Override public void onClick(    View v){
      Intent resultData=extras.getParcelable(EXTRA_DATA);
      resultData.putExtra(OpenPgpApi.EXTRA_KEY_IDS,mSelectFragment.getSelectedMasterKeyIds());
      RemoteSelectPubKeyActivity.this.setResult(RESULT_OK,resultData);
      RemoteSelectPubKeyActivity.this.finish();
    }
  }
,new View.OnClickListener(){
    @Override public void onClick(    View v){
      RemoteSelectPubKeyActivity.this.setResult(RESULT_CANCELED);
      RemoteSelectPubKeyActivity.this.finish();
    }
  }
);
  TextView textView=(TextView)findViewById(R.id.api_select_pub_keys_text);
  textView.setText(ssb,TextView.BufferType.SPANNABLE);
  if (findViewById(R.id.api_select_pub_keys_fragment_container) != null) {
    if (savedInstanceState != null) {
      return;
    }
    mSelectFragment=SelectPublicKeyFragment.newInstance(selectedMasterKeyIds);
    getSupportFragmentManager().beginTransaction().add(R.id.api_select_pub_keys_fragment_container,mSelectFragment).commit();
  }
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  final Bundle extras=getIntent().getExtras();
  long[] selectedMasterKeyIds=getIntent().getLongArrayExtra(EXTRA_SELECTED_MASTER_KEY_IDS);
  boolean noUserIdsCheck=getIntent().getBooleanExtra(EXTRA_NO_USER_IDS_CHECK,true);
  ArrayList<String> missingEmails=getIntent().getStringArrayListExtra(EXTRA_MISSING_EMAILS);
  ArrayList<String> duplicateEmails=getIntent().getStringArrayListExtra(EXTRA_DUPLICATE_EMAILS);
  SpannableStringBuilder ssb=new SpannableStringBuilder();
  final SpannableString textIntro=new SpannableString(noUserIdsCheck ? getString(R.string.api_select_pub_keys_text_no_user_ids) : getString(R.string.api_select_pub_keys_text));
  textIntro.setSpan(new StyleSpan(Typeface.BOLD),0,textIntro.length(),Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
  ssb.append(textIntro);
  if (missingEmails != null && missingEmails.size() > 0) {
    ssb.append("String_Node_Str");
    ssb.append(getString(R.string.api_select_pub_keys_missing_text));
    ssb.append("String_Node_Str");
    for (    String emails : missingEmails) {
      SpannableString ss=new SpannableString(emails + "String_Node_Str");
      ss.setSpan(new BulletSpan(15,Color.BLACK),0,ss.length(),Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
      ssb.append(ss);
    }
  }
  if (duplicateEmails != null && duplicateEmails.size() > 0) {
    ssb.append("String_Node_Str");
    ssb.append(getString(R.string.api_select_pub_keys_dublicates_text));
    ssb.append("String_Node_Str");
    for (    String email : duplicateEmails) {
      SpannableString ss=new SpannableString(email + "String_Node_Str");
      ss.setSpan(new BulletSpan(15,Color.BLACK),0,ss.length(),Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
      ssb.append(ss);
    }
  }
  setFullScreenDialogDoneClose(R.string.btn_okay,new View.OnClickListener(){
    @Override public void onClick(    View v){
      Intent resultData=extras.getParcelable(EXTRA_DATA);
      resultData.putExtra(OpenPgpApi.EXTRA_KEY_IDS_SELECTED,mSelectFragment.getSelectedMasterKeyIds());
      RemoteSelectPubKeyActivity.this.setResult(RESULT_OK,resultData);
      RemoteSelectPubKeyActivity.this.finish();
    }
  }
,new View.OnClickListener(){
    @Override public void onClick(    View v){
      RemoteSelectPubKeyActivity.this.setResult(RESULT_CANCELED);
      RemoteSelectPubKeyActivity.this.finish();
    }
  }
);
  TextView textView=(TextView)findViewById(R.id.api_select_pub_keys_text);
  textView.setText(ssb,TextView.BufferType.SPANNABLE);
  if (findViewById(R.id.api_select_pub_keys_fragment_container) != null) {
    if (savedInstanceState != null) {
      return;
    }
    mSelectFragment=SelectPublicKeyFragment.newInstance(selectedMasterKeyIds);
    getSupportFragmentManager().beginTransaction().add(R.id.api_select_pub_keys_fragment_container,mSelectFragment).commit();
  }
}