public RepositoryPagerAdapter onDialogResult(int position, int requestCode,
                                                 int resultCode, Bundle arguments) {
        if (position == getItemCode() && codeFragment != null) {
            codeFragment.onDialogResult(requestCode, resultCode, arguments);
        } else if (position == getItemCommits() && commitsFragment != null) {
            commitsFragment.onDialogResult(requestCode, resultCode, arguments);
        }

        return this;
    }
Deliver dialog result to fragment at given position

@param position
@param requestCode
@param resultCode
@param arguments
@return this adapter
app/src/main/java/com/github/pockethub/android/ui/repo/RepositoryPagerAdapter.java