[Demonstration 1]

[Buggy Method]
public void tweenCalculatingEnded() {
    assert state == PREVIEW;
    setState(NORMAL);
    // TODO necessary?
    getComposition().repaint();
}

[Buggy Hunk]
getComposition().repaint(); // TODO necessary?

[Patch]
comp.imageChanged(REPAINT); // TODO necessary?

[Demonstration 2]

[Buggy Method]
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    // TODO Auto-generated method stub
    Log.d("=AAA=", "***********爸爸***************");
    if (requestCode == RechargePhoneFragment.REQUEST_CONTACT_PICK) {
        if (phoneFragment != null) {
            phoneFragment.onActivityResult(requestCode, resultCode, data);
        }
    }
    super.onActivityResult(requestCode, resultCode, data);
}

[Buggy Hunk]
if (requestCode == RechargePhoneFragment.REQUEST_CONTACT_PICK) {

[Patch]
if ((requestCode & 0xffff) == RechargePhoneFragment.REQUEST_CONTACT_PICK) {

[Demonstration 3]

[Buggy Method]
private void notifyBackground() {
    String A, R, G, B;
    A = Integer.toHexString((int) Math.ceil(colorA * 2.55));
    R = Integer.toHexString(colorR);
    G = Integer.toHexString(colorG);
    B = Integer.toHexString(colorB);
    A = A.length() == 1 ? "0" + A : A;
    R = R.length() == 1 ? "0" + R : R;
    G = G.length() == 1 ? "0" + G : G;
    B = B.length() == 1 ? "0" + B : B;
    colorTextView.setText(String.format(Locale.getDefault(), "#%s%s%s%s", A, R, G, B).toUpperCase(Locale.getDefault()));
    colorView.setBackgroundColor(Color.argb(colorA, colorR, colorG, colorB));
}

[Buggy Hunk]
A = Integer.toHexString((int)Math.ceil(colorA*2.55));

[Patch]
A = Integer.toHexString(colorA);