[Demonstration 1]

[Buggy Method]
@Override
public void onClick(View v) {
    //Intent i = new Intent(getApplicationContext(),SettingsActivity.class);
    //startActivity(i);
    startActivity(new Intent(getApplicationContext(), SettingsActivity.class));
    overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_left);
}

[Buggy Hunk]
startActivity(new Intent(getApplicationContext(), SettingsActivity.class));

[Patch]
startActivity(new Intent(getApplicationContext(), RulesActivity.class));

[Demonstration 2]

[Buggy Method]
@Override
public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == R.id.action_settings) {
        Intent settingsIntent = new Intent(getActivity(), SettingsActivity.class);
        startActivity(settingsIntent);
        return true;
    }
    return super.onOptionsItemSelected(item);
}

[Buggy Hunk]
Intent settingsIntent = new Intent(getActivity(), SettingsActivity.class);

[Patch]
Intent settingsIntent = new Intent(getActivity(), SettingsFragment.class);

[Demonstration 3]

[Buggy Method]
private void addGCanvasView() {
    String backgroundColor = getDomObject().getStyles().getBackgroundColor();
    mSurfaceView = new GWXSurfaceView(getContext(), getRef());
    if (backgroundColor.isEmpty()) {
        backgroundColor = "rgba(0,0,0,0)";
    }
    mSurfaceView.setBackgroundColor(backgroundColor);
    //        mContainer.addView(mSurfaceView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
}

[Buggy Hunk]
mSurfaceView = new GWXSurfaceView(getContext(), getRef());

[Patch]
mSurfaceView = new GWXSurfaceView(getContext(),this);