File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -164,8 +164,7 @@ function initializeNativeClasses() {
164164 }
165165
166166 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 ( ) ;
169168 if ( ! this . mCurTransaction ) {
170169 this . mCurTransaction = fragmentManager . beginTransaction ( ) ;
171170 }
@@ -202,8 +201,7 @@ function initializeNativeClasses() {
202201
203202 destroyItem ( container : android . view . ViewGroup , position : number , object : java . lang . Object ) : void {
204203 if ( ! this . mCurTransaction ) {
205- //@ts -ignore
206- const fragmentManager = this . owner . _getRootFragmentManager ( ) ;
204+ const fragmentManager = this . owner . _getFragmentManager ( ) ;
207205 this . mCurTransaction = fragmentManager . beginTransaction ( ) ;
208206 }
209207
@@ -623,8 +621,7 @@ export class Tabs extends TabsBase {
623621 }
624622
625623 private disposeCurrentFragments ( ) : void {
626- //@ts -ignore
627- const fragmentManager = this . _getRootFragmentManager ( ) ;
624+ const fragmentManager = this . _getFragmentManager ( ) ;
628625 const transaction = fragmentManager . beginTransaction ( ) ;
629626
630627 const fragments = this . fragments ;
You can’t perform that action at this time.
0 commit comments