lsjwzh / RecyclerViewPager

Deprecated
Apache License 2.0
3.53k stars 667 forks source link

Fixed not to start smoothScrolling when tab selected #174

Closed icalo35 closed 7 years ago

icalo35 commented 7 years ago

NullPointerException is thrown when swipe pages while using TabLayoutSupport. Because called nested RecyclerViewPager.smoothScrollToPosition by TabLayoutSupport's Listeners. and called nested RecyclerView.stop() .

Then fixed not to call smoothScrollToPosition in ViewPagerOnTabSelectedListener.onTabSelected when called select() by TabLayoutOnPageChangeListener.OnPageChanged.