@@ -40,7 +40,7 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
40
40
this . bindingContext = fromObject ( options . context ) ;
41
41
this . _raiseShownBottomSheetEvent ( ) ;
42
42
} ,
43
- dismissCallback : ( ) => this . _onDismissBottomSheetCallback ( ) ,
43
+ dismissCallback : ( ) => this . _onDismissBottomSheetCallback ( )
44
44
} ;
45
45
const dfListener = new com . nativescript . material . bottomsheet . BottomSheetDialogFragment . BottomSheetDialogFragmentListener ( {
46
46
onCreateDialog ( fragment : com . nativescript . material . bottomsheet . BottomSheetDialogFragment , savedInstanceState : android . os . Bundle ) : android . app . Dialog {
@@ -58,7 +58,7 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
58
58
eventName : 'activityBackPressed' ,
59
59
object : owner ,
60
60
activity : owner . _context ,
61
- cancel : false ,
61
+ cancel : false
62
62
} as AndroidActivityBackPressedEventData ;
63
63
64
64
// Fist fire application.android global event
@@ -69,7 +69,7 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
69
69
70
70
owner . notify ( args ) ;
71
71
return args . cancel || owner . onBackPressed ( ) ;
72
- } ,
72
+ }
73
73
} ) ;
74
74
const dialog = new com . nativescript . material . bottomsheet . BottomSheetDialog ( fragment . getActivity ( ) , theme ) ;
75
75
dialog . setListener ( dialogListener ) ;
@@ -79,6 +79,9 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
79
79
if ( creationOptions . dismissOnBackgroundTap !== undefined ) {
80
80
dialog . setCanceledOnTouchOutside ( creationOptions . dismissOnBackgroundTap ) ;
81
81
}
82
+ if ( creationOptions . disableDimBackground === true ) {
83
+ dialog . getWindow ( ) . clearFlags ( android . view . WindowManager . LayoutParams . FLAG_DIM_BEHIND ) ;
84
+ }
82
85
}
83
86
return dialog ;
84
87
} ,
@@ -146,7 +149,7 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
146
149
owner . _isAddedToNativeVisualTree = false ;
147
150
owner . _tearDownUI ( true ) ;
148
151
}
149
- } ,
152
+ }
150
153
} ) ;
151
154
const df = new com . nativescript . material . bottomsheet . BottomSheetDialogFragment ( ) ;
152
155
df . setListener ( dfListener ) ;
0 commit comments