From fc8d41084cb6b4e657969ae4b708afac9ef3d910 Mon Sep 17 00:00:00 2001 From: Graziano Capelli Date: Sun, 16 Jun 2019 09:12:00 +0200 Subject: [PATCH] Uses new function definition addOnPageListener --- .../eu/basicairdata/airdatabridge/AirDataBridgeActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);