fix(android-bottom-tabs): transition type on programmatic selectedIndex change (#6942)

This commit is contained in:
Yurii Cherniavskyi
2019-02-22 12:37:44 +02:00
committed by Manol Donev
parent 27c12812f1
commit e9dfa207d8

View File

@ -643,11 +643,13 @@ export class TabView extends TabViewBase {
}
[selectedIndexProperty.setNative](value: number) {
const smoothScroll = this.androidTabsPosition === "top";
if (traceEnabled()) {
traceWrite("TabView this._viewPager.setCurrentItem(" + value + ", true);", traceCategory);
traceWrite("TabView this._viewPager.setCurrentItem(" + value + ", " + smoothScroll + ");", traceCategory);
}
this._viewPager.setCurrentItem(value, true);
this._viewPager.setCurrentItem(value, smoothScroll);
}
[itemsProperty.getDefault](): TabViewItem[] {