@Override
    public CharSequence getPageTitle(int position) {
        position = hasReadme ? position : position + 1;

        switch (position) {
            case 0:
                return resources.getString(R.string.tab_readme);
            case 1:
                return resources.getString(R.string.tab_news);
            case 2:
                return resources.getString(R.string.tab_code);
            case 3:
                return resources.getString(R.string.tab_commits);
            case 4:
                return resources.getString(R.string.tab_issues);
            default:
                return null;
        }
    }
Create repository pager adapter

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