Skip to content

FragmentPagerAdapter subclass must implement getPageTitle #2

Description

@alunsford3

In TabBarView you are calling pager.getAdapter().getPageTitle(i).toString() which will throw an NPE if it is unimplemented. Since getPageTitle is not abstract, the CharSequence returned should be checked.

https://github.com/Mirkoddd/TabBarView/blob/master/TabBarViewLibrary/src/com/mirko/tbv/TabBarView.java#L174

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions