Program: 14552
Project: 14552
Buggy source:
private void buildDialog(int positionParam){
  final int position=positionParam;
  AlertDialog.Builder dialogBuilder=new AlertDialog.Builder(AddQuickPressShortcutActivity.this);
  dialogBuilder.setTitle(R.string.quickpress_add_alert_title);
  final EditText quickPressShortcutName=new EditText(AddQuickPressShortcutActivity.this);
  quickPressShortcutName.setText("String_Node_Str" + StringUtils.unescapeHTML(accountNames.get(position)));
  dialogBuilder.setView(quickPressShortcutName);
  dialogBuilder.setPositiveButton(R.string.add,new DialogInterface.OnClickListener(){
    public void onClick(    DialogInterface dialog,    int which){
      if (TextUtils.isEmpty(quickPressShortcutName.getText())) {
        Toast t=Toast.makeText(AddQuickPressShortcutActivity.this,R.string.quickpress_add_error,Toast.LENGTH_LONG);
        t.show();
      }
 else {
        Intent shortcutIntent=new Intent(AddQuickPressShortcutActivity.this,EditPostActivity.class);
        shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        shortcutIntent.putExtra(EditPostActivity.EXTRA_QUICKPRESS_BLOG_ID,accountIDs[position]);
        shortcutIntent.putExtra(EditPostActivity.EXTRA_IS_QUICKPRESS,true);
        Intent addIntent=new Intent();
        addIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT,shortcutIntent);
        addIntent.putExtra(Intent.EXTRA_SHORTCUT_NAME,quickPressShortcutName.getText().toString());
        addIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE,Intent.ShortcutIconResource.fromContext(AddQuickPressShortcutActivity.this,R.drawable.app_icon));
        WordPress.wpDB.addQuickPressShortcut(accountIDs[position],quickPressShortcutName.getText().toString());
        if (WordPress.currentBlog == null) {
          WordPress.currentBlog=WordPress.wpDB.instantiateBlogByLocalId(accountIDs[position]);
          WordPress.wpDB.updateLastBlogId(accountIDs[position]);
        }
        addIntent.setAction("String_Node_Str");
        AddQuickPressShortcutActivity.this.sendBroadcast(addIntent);
        AddQuickPressShortcutActivity.this.finish();
      }
    }
  }
);
  dialogBuilder.setNegativeButton(R.string.cancel,new DialogInterface.OnClickListener(){
    public void onClick(    DialogInterface dialog,    int which){
    }
  }
);
  dialogBuilder.setCancelable(false);
  dialogBuilder.create().show();
}

Fixed version (ground truth):
private void buildDialog(int positionParam){
  final int position=positionParam;
  AlertDialog.Builder dialogBuilder=new AlertDialog.Builder(AddQuickPressShortcutActivity.this);
  dialogBuilder.setTitle(R.string.quickpress_add_alert_title);
  final EditText quickPressShortcutName=new EditText(AddQuickPressShortcutActivity.this);
  quickPressShortcutName.setText("String_Node_Str" + StringUtils.unescapeHTML(accountNames.get(position)));
  dialogBuilder.setView(quickPressShortcutName);
  dialogBuilder.setPositiveButton(R.string.add,new DialogInterface.OnClickListener(){
    public void onClick(    DialogInterface dialog,    int which){
      if (TextUtils.isEmpty(quickPressShortcutName.getText())) {
        Toast t=Toast.makeText(AddQuickPressShortcutActivity.this,R.string.quickpress_add_error,Toast.LENGTH_LONG);
        t.show();
      }
 else {
        Intent shortcutIntent=new Intent(getApplicationContext(),EditPostActivity.class);
        shortcutIntent.setAction(Intent.ACTION_MAIN);
        shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        shortcutIntent.putExtra(EditPostActivity.EXTRA_QUICKPRESS_BLOG_ID,accountIDs[position]);
        shortcutIntent.putExtra(EditPostActivity.EXTRA_IS_QUICKPRESS,true);
        Intent addIntent=new Intent();
        addIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT,shortcutIntent);
        addIntent.putExtra(Intent.EXTRA_SHORTCUT_NAME,quickPressShortcutName.getText().toString());
        addIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE,Intent.ShortcutIconResource.fromContext(AddQuickPressShortcutActivity.this,R.drawable.app_icon));
        WordPress.wpDB.addQuickPressShortcut(accountIDs[position],quickPressShortcutName.getText().toString());
        if (WordPress.currentBlog == null) {
          WordPress.currentBlog=WordPress.wpDB.instantiateBlogByLocalId(accountIDs[position]);
          WordPress.wpDB.updateLastBlogId(accountIDs[position]);
        }
        addIntent.setAction("String_Node_Str");
        AddQuickPressShortcutActivity.this.sendBroadcast(addIntent);
        AddQuickPressShortcutActivity.this.finish();
      }
    }
  }
);
  dialogBuilder.setNegativeButton(R.string.cancel,new DialogInterface.OnClickListener(){
    public void onClick(    DialogInterface dialog,    int which){
    }
  }
);
  dialogBuilder.setCancelable(false);
  dialogBuilder.create().show();
}