am 751079db: am 4347bb23: am 81fdc552: Fix tab blinking while fling

* commit '751079dbfcb539527784131195b4caeaf2cd9d59':
  Fix tab blinking while fling

GitOrigin-RevId=68a1729024d48e19820bdfafd484bf603bec4e12

PiperOrigin-RevId: 140548307
This commit is contained in:
Alan Jeon 2016-11-30 01:14:58 +00:00 committed by Travis Collins
parent afb9c19ed0
commit 4ffca42c35

View File

@ -327,7 +327,9 @@ public class TabLayout extends HorizontalScrollView {
@Override
public void onPageSelected(int position) {
getTabAt(position).select();
if (mScrollState == ViewPager.SCROLL_STATE_IDLE) {
getTabAt(position).select();
}
}
};
}