File tree Expand file tree Collapse file tree
tns-core-modules/ui/core/view Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,6 +91,11 @@ function initializeDialogFragment() {
9191 return global . __native ( this ) ;
9292 }
9393
94+ public onDetachedFromWindow ( ) : void {
95+ super . onDetachedFromWindow ( ) ;
96+ this . fragment = null ;
97+ } ;
98+
9499 public onBackPressed ( ) : void {
95100 const view = this . fragment . owner ;
96101 const args = < AndroidActivityBackPressedEventData > {
@@ -136,9 +141,8 @@ function initializeDialogFragment() {
136141 this . _stretched = options . stretched ;
137142 this . _dismissCallback = options . dismissCallback ;
138143 this . _shownCallback = options . shownCallback ;
139- this . owner . _dialogFragment = this ;
140144 this . setStyle ( android . support . v4 . app . DialogFragment . STYLE_NO_TITLE , 0 ) ;
141-
145+
142146 let theme = this . getTheme ( ) ;
143147 if ( this . _fullscreen ) {
144148 // In fullscreen mode, get the application's theme.
You can’t perform that action at this time.
0 commit comments