@@ -52,9 +52,9 @@ export class SnackBar extends SnackBarBase {
52
52
while ( attachView [ '_modal' ] ) {
53
53
attachView = attachView [ '_modal' ] ;
54
54
}
55
- const page = ( attachView instanceof Page ? attachView : attachView . page ) ;
56
- let nView = ( page . nativeViewProtected as android . view . View ) . getParent ( ) ;
57
- if ( page . hasActionBar ) {
55
+ const page = attachView instanceof Page ? attachView : attachView . page ;
56
+ let nView = ( page . nativeViewProtected as android . view . View ) . getParent ( ) ;
57
+ if ( page . hasActionBar ) {
58
58
nView = nView . getParent ( ) ;
59
59
}
60
60
let nCoordinatorLayout : androidx . coordinatorlayout . widget . CoordinatorLayout = ( page as any ) . nCoordinatorLayout ;
@@ -64,9 +64,9 @@ export class SnackBar extends SnackBarBase {
64
64
if ( options . view ) {
65
65
const nAttachedView = options . view . nativeViewProtected as android . view . View ;
66
66
const params = new android . widget . FrameLayout . LayoutParams ( nAttachedView . getWidth ( ) , nAttachedView . getHeight ( ) ) ;
67
- const myArray = ( Array ) . create ( 'int' , 2 ) ;
67
+ const myArray = Array . create ( 'int' , 2 ) ;
68
68
nView . getLocationOnScreen ( myArray ) ;
69
- const otherArray = ( Array ) . create ( 'int' , 2 ) ;
69
+ const otherArray = Array . create ( 'int' , 2 ) ;
70
70
options . view . nativeViewProtected . getLocationOnScreen ( otherArray ) ;
71
71
72
72
params . topMargin = otherArray [ 1 ] - myArray [ 1 ] ;
@@ -130,14 +130,14 @@ export class SnackBar extends SnackBarBase {
130
130
resolve ( {
131
131
command : SnackBarAction . ACTION ,
132
132
reason : _getReason ( 1 ) ,
133
- event : args ,
133
+ event : args
134
134
} ) ;
135
135
if ( this . _snackbarCallback ) {
136
136
this . _snackbarCallback . cb = null ;
137
137
this . _snackbarCallback = null ;
138
138
}
139
139
this . _snackbar = null ;
140
- } ,
140
+ }
141
141
} ) ;
142
142
143
143
// set the action text, click listener
@@ -152,7 +152,7 @@ export class SnackBar extends SnackBarBase {
152
152
resolve ( {
153
153
command : SnackBarAction . DISMISS ,
154
154
reason : _getReason ( event ) ,
155
- event,
155
+ event
156
156
} ) ;
157
157
( cb as any ) . resolve . resolve = null ;
158
158
}
@@ -167,9 +167,7 @@ export class SnackBar extends SnackBarBase {
167
167
}
168
168
} ,
169
169
170
- onShown ( snackbar : com . google . android . material . snackbar . Snackbar ) {
171
-
172
- } ,
170
+ onShown ( snackbar : com . google . android . material . snackbar . Snackbar ) { }
173
171
} ) ;
174
172
cb . setListener ( callbackListener ) ;
175
173
( cb as any ) . nListener = callbackListener ; // handles the resolve of the promise
@@ -207,7 +205,7 @@ export class SnackBar extends SnackBarBase {
207
205
setTimeout ( ( ) => {
208
206
resolve ( {
209
207
action : SnackBarAction . DISMISS ,
210
- reason : _getReason ( 3 ) ,
208
+ reason : _getReason ( 3 )
211
209
} ) ;
212
210
} , 200 ) ;
213
211
this . _snackbar = null ;
@@ -217,7 +215,7 @@ export class SnackBar extends SnackBarBase {
217
215
} else {
218
216
resolve ( {
219
217
action : SnackBarAction . NONE ,
220
- message : 'No actionbar to dismiss' ,
218
+ message : 'No actionbar to dismiss'
221
219
} ) ;
222
220
}
223
221
} ) ;
0 commit comments