File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -164,8 +164,7 @@ function initializeNativeClasses() {
164
164
}
165
165
166
166
instantiateItem ( container : android . view . ViewGroup , position : number ) : java . lang . Object {
167
- //@ts -ignore
168
- const fragmentManager = this . owner . _getRootFragmentManager ( ) ;
167
+ const fragmentManager = this . owner . _getFragmentManager ( ) ;
169
168
if ( ! this . mCurTransaction ) {
170
169
this . mCurTransaction = fragmentManager . beginTransaction ( ) ;
171
170
}
@@ -202,8 +201,7 @@ function initializeNativeClasses() {
202
201
203
202
destroyItem ( container : android . view . ViewGroup , position : number , object : java . lang . Object ) : void {
204
203
if ( ! this . mCurTransaction ) {
205
- //@ts -ignore
206
- const fragmentManager = this . owner . _getRootFragmentManager ( ) ;
204
+ const fragmentManager = this . owner . _getFragmentManager ( ) ;
207
205
this . mCurTransaction = fragmentManager . beginTransaction ( ) ;
208
206
}
209
207
@@ -623,8 +621,7 @@ export class Tabs extends TabsBase {
623
621
}
624
622
625
623
private disposeCurrentFragments ( ) : void {
626
- //@ts -ignore
627
- const fragmentManager = this . _getRootFragmentManager ( ) ;
624
+ const fragmentManager = this . _getFragmentManager ( ) ;
628
625
const transaction = fragmentManager . beginTransaction ( ) ;
629
626
630
627
const fragments = this . fragments ;
You can’t perform that action at this time.
0 commit comments