@@ -20,7 +20,7 @@ import {
2020
2121import { Background , ad as androidBackground } from "../../styling/background" ;
2222import { profile } from "../../../profiling" ;
23- import { topmost } from "../../frame" ;
23+ import { topmost } from "../../frame/frame-stack " ;
2424import { AndroidActivityBackPressedEventData , android as androidApp } from "../../../application" ;
2525
2626export * from "./view-common" ;
@@ -265,6 +265,10 @@ export class View extends ViewCommon {
265265 }
266266 }
267267
268+ public _getChildFragmentManager ( ) : android . support . v4 . app . FragmentManager {
269+ return null ;
270+ }
271+
268272 public _getFragmentManager ( ) : android . support . v4 . app . FragmentManager {
269273 let manager = this . _manager ;
270274 if ( ! manager ) {
@@ -287,9 +291,9 @@ export class View extends ViewCommon {
287291 // - tabview -> frame1 (frame1 uses tabview item CHILD fm)
288292 // - frame1 -> tabview (tabview uses frame1 CHILD fm)
289293 // - frame1 -> tabview -> frame2 (tabview uses frame1 CHILD fm; frame2 uses tabview item CHILD fm)
290- if ( view . typeName === "Frame" || view . typeName === "TabView" ) {
294+ if ( view . _hasFragments ) {
291295 if ( frameOrTabFound ) {
292- manager = ( < any > view ) . _getChildFragmentManager ( ) ;
296+ manager = view . _getChildFragmentManager ( ) ;
293297 break ;
294298 }
295299
@@ -425,6 +429,10 @@ export class View extends ViewCommon {
425429 return false ;
426430 }
427431
432+ get _hasFragments ( ) : boolean {
433+ return false ;
434+ }
435+
428436 public layoutNativeView ( left : number , top : number , right : number , bottom : number ) : void {
429437 if ( this . nativeViewProtected ) {
430438 this . nativeViewProtected . layout ( left , top , right , bottom ) ;
@@ -994,4 +1002,4 @@ createNativePercentLengthProperty({
9941002createNativePercentLengthProperty ( {
9951003 setter : "_setMinHeightNative" ,
9961004 get setPixels ( ) { return org . nativescript . widgets . ViewHelper . setMinHeight }
997- } ) ;
1005+ } ) ;
0 commit comments