mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix tslint
Revert code that set currentEntry in fragment.transitions.android Update tests & apps runtime version Fix broken import in frame-tests Revert TabView to fire loaded for all TabViewItems
This commit is contained in:
@@ -350,18 +350,6 @@ export class TabView extends TabViewBase {
|
||||
super.disposeNativeView();
|
||||
}
|
||||
|
||||
public _loadEachChild(): void {
|
||||
// We load childs once they are added to native parent or Frame
|
||||
// cannot navigate because its nativeView is not added to window.
|
||||
const index = this.selectedIndex;
|
||||
if (index >= 0) {
|
||||
const item = this.items[index];
|
||||
if (!item.isLoaded && this.isLoaded) {
|
||||
item.onLoaded();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private setAdapterItems(items: Array<TabViewItem>) {
|
||||
(<any>this._pagerAdapter).items = items;
|
||||
|
||||
@@ -405,19 +393,12 @@ export class TabView extends TabViewBase {
|
||||
this._viewPager.setOffscreenPageLimit(value);
|
||||
}
|
||||
|
||||
[selectedIndexProperty.getDefault](): number {
|
||||
return -1;
|
||||
}
|
||||
[selectedIndexProperty.setNative](value: number) {
|
||||
if (traceEnabled()) {
|
||||
traceWrite("TabView this._viewPager.setCurrentItem(" + value + ", true);", traceCategory);
|
||||
}
|
||||
|
||||
const item = this.items[value];
|
||||
this._viewPager.setCurrentItem(value, true);
|
||||
if (!item.isLoaded && this.isLoaded) {
|
||||
item.onLoaded();
|
||||
}
|
||||
}
|
||||
|
||||
[itemsProperty.getDefault](): TabViewItem[] {
|
||||
|
||||
@@ -356,9 +356,6 @@ export class TabView extends TabViewBase {
|
||||
}
|
||||
}
|
||||
|
||||
[selectedIndexProperty.getDefault](): number {
|
||||
return -1;
|
||||
}
|
||||
[selectedIndexProperty.setNative](value: number) {
|
||||
if (traceEnabled()) {
|
||||
traceWrite("TabView._onSelectedIndexPropertyChangedSetNativeValue(" + value + ")", traceCategories.Debug);
|
||||
|
||||
Reference in New Issue
Block a user