Skip to content

Commit

Permalink
Uses new function definition addOnPageListener
Browse files Browse the repository at this point in the history
  • Loading branch information
GrazianoCapelli committed Jun 16, 2019
1 parent 005fff0 commit fc8d410
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected void onCreate(Bundle savedInstanceState) {
setupViewPager(mViewPager);

// When swiping between different sections, select the corresponding tab
mViewPager.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {
mViewPager.addOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {
@Override
public void onPageSelected(int position) {
if (menuNew != null) menuNew.setVisible(position != 0);
Expand Down

0 comments on commit fc8d410

Please sign in to comment.