diff --git a/app/src/main/java/eu/basicairdata/airdatabridge/AirDataBridgeActivity.java b/app/src/main/java/eu/basicairdata/airdatabridge/AirDataBridgeActivity.java index 107089e..093d579 100644 --- a/app/src/main/java/eu/basicairdata/airdatabridge/AirDataBridgeActivity.java +++ b/app/src/main/java/eu/basicairdata/airdatabridge/AirDataBridgeActivity.java @@ -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);