[Demonstration 1]

[Buggy Method]
@Override
public boolean onDoubleTap(MotionEvent e) {
    boolean consumed = false;
    if (state == NONE) {
        float targetZoom = (normalizedScale == minScale) ? maxScale : minScale;
        DoubleTapZoom doubleTap = new DoubleTapZoom(targetZoom, e.getX(), e.getY(), false);
        compatPostOnAnimation(doubleTap);
        consumed = true;
    }
    return consumed;
}

[Buggy Hunk]
if (state == NONE) {

[Patch]
if (state == State.NONE) {

[Demonstration 2]

[Buggy Method]
@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)
private void showProgress(final boolean show) {
    // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow
    // for very easy animations. If available, use these APIs to fade-in
    // the progress spinner.
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {
        int shortAnimTime = getResources().getInteger(android.R.integer.config_longAnimTime);
        mJoinFormView.setVisibility(show ? View.GONE : View.VISIBLE);
        mJoinFormView.animate().setDuration(shortAnimTime).alpha(show ? 0 : 1).setListener(new AnimatorListenerAdapter() {

            @Override
            public void onAnimationEnd(Animator animation) {
                mJoinFormView.setVisibility(show ? View.GONE : View.VISIBLE);
            }
        });
        mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);
        mProgressView.animate().setDuration(shortAnimTime).alpha(show ? 1 : 0).setListener(new AnimatorListenerAdapter() {

            @Override
            public void onAnimationEnd(Animator animation) {
                mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);
            }
        });
    } else {
        // The ViewPropertyAnimator APIs are not available, so simply show
        // and hide the relevant UI components.
        mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);
        mJoinFormView.setVisibility(show ? View.GONE : View.VISIBLE);
    }
}

[Buggy Hunk]
private void showProgress(final boolean show) {

[Patch]
public void showProgress(final boolean show) {

[Demonstration 3]

[Buggy Method]
private void saveConfirmation(String title, String message) {
    new AlertDialog.Builder(SurveyQuestionActivity.this).setIcon(android.R.drawable.ic_dialog_alert).setTitle(title).setCancelable(false).setMessage(message).setPositiveButton("Ya", new DialogInterface.OnClickListener() {

        @Override
        public void onClick(DialogInterface dialog, int which) {
            Responden respondence = new Responden(respondenceName, false, created_at, getDateTime(), strLatitude, strLongitude, false, false);
            respondenceID = handler.addResponden(respondence, idSurvey);
            respondencesAnswer.saveAnswerData(idSurvey, respondenceID + "", respondenceName, answeredQuestion, unAnsweredQuestionID);
            dialog.dismiss();
            RespondenceActivity.ra.RefreshList();
            finish();
        }
    }).setNegativeButton("Tidak", new DialogInterface.OnClickListener() {

        @Override
        public void onClick(DialogInterface dialog, int which) {
            unAnsweredQuestionID.clear();
            answeredQuestion.clear();
            dialog.dismiss();
        }
    }).setNeutralButton("Ya & Final", new DialogInterface.OnClickListener() {

        @Override
        public void onClick(DialogInterface dialog, int which) {
            Responden respondence = new Responden(respondenceName, false, getDateTime(), getDateTime(), strLatitude, strLongitude, true, false);
            respondenceID = handler.addResponden(respondence, idSurvey);
            respondencesAnswer.saveAnswerData(idSurvey, respondenceID + "", respondenceName, answeredQuestion, unAnsweredQuestionID);
            dialog.dismiss();
            RespondenceActivity.ra.RefreshList();
            finish();
        }
    }).show();
}

[Buggy Hunk]
Responden respondence = new Responden(respondenceName, false, getDateTime(), getDateTime(), strLatitude, strLongitude, true, false);

[Patch]
Responden respondence = new Responden(respondenceName, false, created_at, getDateTime(), strLatitude, strLongitude, true, false);