mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
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:
parent
afb9c19ed0
commit
4ffca42c35
@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user