title: setOnTabSelectedListener is deprecated
body: <p>I always see a crossed out line <s>setOnTabSelectedListener</s> for the following code </p>
  
  <pre><code>viewPager.setAdapter(adapter);
  viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabLayout));
  tabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
      @Override
      public void onTabSelected(TabLayout.Tab tab) {
          viewPager.setCurrentItem(tab.getPosition());
      }
  }
  </code></pre>
  
  <p>And the error shown is:</p>
  
  <blockquote>
    <p>setOnTabSelectedListener is deprecated</p>
  </blockquote>
  
  <p>However, the program seems to work just fine. May I know what's going on? </p>