title: ViewPager2 disable transition animation
body: <p>I have ViewPager2 connected with TabLayout. Other posts referring to ViewPager offer to override setCurrentItem(position, false) where false disables the smooth scroll. However, TabLayoutMediator calls onTabSelected(TabLayout.Tab tab) which calls viewpager.setCurrentItem(postion, true). How can I override this behavior if TabLayoutMediator is final, as well as ViewPager2?</p>
  
  <p>Have already tried:</p>
  
  <pre><code>viewPager.registerOnPageChangeCallback(new ViewPager2.OnPageChangeCallback() {
          @Override
          public void onPageSelected(int position) {
              viewPager.setCurrentItem(position, false);
          }
      });
  </code></pre>
  
  <p>And overriding onTabSelected like this:</p>
  
  <pre><code>     tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
          @Override
          public void onTabSelected(TabLayout.Tab tab) {
              viewPager.setCurrentItem(viewPager.getPosition(), false);
          }
           ......
      }
  </code></pre>