Program: 95110
Project: 95110
Buggy source:
private void initialize(final Context context,AttributeSet attrs){
  final TypedArray a=context.getTheme().obtainStyledAttributes(attrs,R.styleable.CardWheelHorizontalView,0,0);
  try {
    setBackgroundResource(R.drawable.bg_cell_white);
    final LayoutInflater inflater=LayoutInflater.from(context);
    mVerticalDivider=inflater.inflate(R.layout.card_title_vertical_divider,this,false);
    mHorizontalDivider=inflater.inflate(R.layout.card_title_horizontal_divider,this,false);
    mTitleView=(TextView)inflater.inflate(R.layout.card_wheel_horizontal_view_title,this,false);
    mTitleView.setText(a.getString(R.styleable.CardWheelHorizontalView_android_text));
    final int orientation=a.getInt(R.styleable.CardWheelHorizontalView_android_orientation,VERTICAL);
    if (orientation == HORIZONTAL) {
      setOrientation(HORIZONTAL);
    }
 else {
      setOrientation(VERTICAL);
    }
    updateTitleLayout();
    final View spinnerWheelFrame=inflater.inflate(R.layout.card_wheel_horizontal_view,this,false);
    addView(spinnerWheelFrame);
    mSpinnerWheel=(WheelHorizontalView)spinnerWheelFrame.findViewById(R.id.horizontalSpinnerWheel);
    mSpinnerWheel.addChangingListener(this);
    mSpinnerWheel.addClickingListener(this);
    mSpinnerWheel.addScrollingListener(this);
    mNumberInputText=(EditText)spinnerWheelFrame.findViewById(R.id.numberInputText);
    mNumberInputText.setOnFocusChangeListener(new OnFocusChangeListener(){
      @Override public void onFocusChange(      View v,      boolean hasFocus){
        if (hasFocus) {
          mNumberInputText.selectAll();
        }
 else {
          hideSoftInput();
        }
      }
    }
);
    mNumberInputText.setOnEditorActionListener(new TextView.OnEditorActionListener(){
      @Override public boolean onEditorAction(      TextView v,      int actionId,      KeyEvent event){
        if (actionId == EditorInfo.IME_ACTION_DONE || actionId == EditorInfo.IME_NULL) {
          hideSoftInput();
          final CharSequence input=v.getText();
          if (input != null) {
            final int update=Integer.parseInt(input.toString());
            final int updateIndex=mSpinnerWheel.getViewAdapter().getItemIndex(update);
            if (updateIndex == -1) {
              Toast.makeText(context,"String_Node_Str" + "String_Node_Str",Toast.LENGTH_LONG).show();
            }
 else {
              setCurrentItem(updateIndex,true);
            }
          }
          return true;
        }
        return false;
      }
    }
);
  }
  finally {
    a.recycle();
  }
}

Fixed version (ground truth):
private void initialize(final Context context,AttributeSet attrs){
  final TypedArray a=context.getTheme().obtainStyledAttributes(attrs,R.styleable.CardWheelHorizontalView,0,0);
  try {
    setBackgroundResource(R.drawable.bg_cell_white);
    final LayoutInflater inflater=LayoutInflater.from(context);
    mVerticalDivider=inflater.inflate(R.layout.card_title_vertical_divider,this,false);
    mHorizontalDivider=inflater.inflate(R.layout.card_title_horizontal_divider,this,false);
    mTitleView=(TextView)inflater.inflate(R.layout.card_wheel_horizontal_view_title,this,false);
    mTitleView.setText(a.getString(R.styleable.CardWheelHorizontalView_android_text));
    final int orientation=a.getInt(R.styleable.CardWheelHorizontalView_android_orientation,VERTICAL);
    if (orientation == HORIZONTAL) {
      setOrientation(HORIZONTAL);
    }
 else {
      setOrientation(VERTICAL);
    }
    updateTitleLayout();
    final View spinnerWheelFrame=inflater.inflate(R.layout.card_wheel_horizontal_view,this,false);
    addView(spinnerWheelFrame);
    mSpinnerWheel=(WheelHorizontalView)spinnerWheelFrame.findViewById(R.id.horizontalSpinnerWheel);
    mSpinnerWheel.addChangingListener(this);
    mSpinnerWheel.addClickingListener(this);
    mSpinnerWheel.addScrollingListener(this);
    mNumberInputText=(EditText)spinnerWheelFrame.findViewById(R.id.numberInputText);
    mNumberInputText.setOnFocusChangeListener(new OnFocusChangeListener(){
      @Override public void onFocusChange(      View v,      boolean hasFocus){
        if (hasFocus) {
          mNumberInputText.selectAll();
        }
 else {
          hideSoftInput();
        }
      }
    }
);
    mNumberInputText.setOnEditorActionListener(new TextView.OnEditorActionListener(){
      @Override public boolean onEditorAction(      TextView v,      int actionId,      KeyEvent event){
        if (actionId == EditorInfo.IME_ACTION_DONE || actionId == EditorInfo.IME_NULL) {
          hideSoftInput();
          final CharSequence input=v.getText();
          if (input != null) {
            final int update=Integer.parseInt(input.toString());
            final int updateIndex=mSpinnerWheel.getViewAdapter().getItemIndex(update);
            if (updateIndex == -1) {
              Toast.makeText(context,"String_Node_Str" + "String_Node_Str",Toast.LENGTH_LONG).show();
            }
 else {
              setCurrentItemIndex(updateIndex,true);
            }
          }
          return true;
        }
        return false;
      }
    }
);
  }
  finally {
    a.recycle();
  }
}