@Override
    public Fragment getItem(int position) {
        position = hasReadme ? position : position + 1;

        switch (position) {
            case 0:
                return new RepositoryReadmeFragment();
            case 1:
                return new RepositoryNewsFragment();
            case 2:
                codeFragment = new RepositoryCodeFragment();
                return codeFragment;
            case 3:
                commitsFragment = new CommitListFragment();
                return commitsFragment;
            case 4:
                return new IssuesFragment();
            default:
                return null;
        }
    }
Create repository pager adapter

@param activity
@param hasIssues
app/src/main/java/com/github/pockethub/android/ui/repo/RepositoryPagerAdapter.java