[Demonstration 1]

[Buggy Method]
@Override
public void onDestroy() {
    Log.d(TAG, "onDestroy: ");
    super.onDestroy();
    presenter.detachView();
    bind.unbind();
}

[Buggy Hunk]
presenter.detachView();

[Patch]
MainApplication.removeTransaction(account.getKey());

[Demonstration 2]

[Buggy Method]
private void detachPresenter(boolean withDestroy) {
    if (presenter != null) {
        presenter.onViewDetached();
        if (!withDestroy)
            presenter.onDestroy();
        presenter = null;
    }
}

[Buggy Hunk]
if(!withDestroy) presenter.onDestroy();

[Patch]
if(withDestroy) presenter.onDestroy();

[Demonstration 3]

[Buggy Method]
protected void toggleToolbar(boolean shouldBeVisible) {
    int deltaY = shouldBeVisible ? 0 : -mToolbar.getHeight();
    mToolbar.animate().translationY(deltaY).setInterpolator(new AccelerateInterpolator(2));
}

[Buggy Hunk]
protected void toggleToolbar(boolean shouldBeVisible){

[Patch]
public void toggleToolbar(boolean shouldBeVisible){