Program: 95129
Project: 95129
Buggy source:
private void initialize(final Context context,AttributeSet attrs){
  final TypedArray a=context.getTheme().obtainStyledAttributes(attrs,R.styleable.CardWheelHorizontalView,0,0);
  try {
    final Resources res=getResources();
    setOrientation(VERTICAL);
    setBackgroundResource(R.drawable.bg_cell_white);
    final LayoutInflater inflater=LayoutInflater.from(context);
    mTitleView=(TextView)inflater.inflate(R.layout.card_wheel_horizontal_view_title,this,false);
    mTitleView.setText(a.getString(R.styleable.CardWheelHorizontalView_android_text));
    addView(mTitleView);
    final View divider=inflater.inflate(R.layout.card_title_divider,this,false);
    addView(divider);
    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) {
          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 {
    final Resources res=getResources();
    setOrientation(VERTICAL);
    setBackgroundResource(R.drawable.bg_cell_white);
    final LayoutInflater inflater=LayoutInflater.from(context);
    mTitleView=(TextView)inflater.inflate(R.layout.card_wheel_horizontal_view_title,this,false);
    mTitleView.setText(a.getString(R.styleable.CardWheelHorizontalView_android_text));
    addView(mTitleView);
    final View divider=inflater.inflate(R.layout.card_title_divider,this,false);
    addView(divider);
    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();
  }
}