Mirkoddd / TabBarView

An Android Library to help you create actionbar tabs like "Capitaine train" app by Cyril Mottier
504 stars 94 forks source link

FragmentPagerAdapter subclass must implement getPageTitle #2

Open alunsford3 opened 10 years ago

alunsford3 commented 10 years ago

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