File tree Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,9 @@ export function overrideViewBase() {
314
314
if ( ! this . createStateListAnimatorTimeout ) {
315
315
this . createStateListAnimatorTimeout = setTimeout ( ( ) => {
316
316
this . createStateListAnimatorTimeout = null ;
317
- createStateListAnimator ( this , this . nativeViewProtected ) ;
317
+ if ( this . nativeViewProtected ) {
318
+ createStateListAnimator ( this , this . nativeViewProtected ) ;
319
+ }
318
320
} ) ;
319
321
}
320
322
}
Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ export class FloatingActionButton extends FloatingActionButtonBase {
42
42
if ( ! this . createStateListAnimatorTimeout ) {
43
43
this . createStateListAnimatorTimeout = setTimeout ( ( ) => {
44
44
this . createStateListAnimatorTimeout = null ;
45
- createStateListAnimator ( this , this . nativeViewProtected ) ;
45
+ if ( this . nativeViewProtected ) {
46
+ createStateListAnimator ( this , this . nativeViewProtected ) ;
47
+ }
46
48
} ) ;
47
49
}
48
50
}
Original file line number Diff line number Diff line change @@ -168,8 +168,10 @@ export class TextField extends TextFieldBase {
168
168
// }
169
169
this . layoutView . requestFocus ( ) ;
170
170
setTimeout ( ( ) => {
171
- this . layoutView . setDescendantFocusability ( oldDesc ) ;
172
- Utils . android . showSoftInput ( this . nativeTextViewProtected ) ;
171
+ if ( this . layoutView ) {
172
+ this . layoutView . setDescendantFocusability ( oldDesc ) ;
173
+ Utils . android . showSoftInput ( this . nativeTextViewProtected ) ;
174
+ }
173
175
} , 0 ) ;
174
176
}
175
177
Original file line number Diff line number Diff line change @@ -167,8 +167,10 @@ export class TextView extends TextViewBase {
167
167
// }
168
168
layoutView . requestFocus ( ) ;
169
169
setTimeout ( ( ) => {
170
- layoutView . setDescendantFocusability ( oldDesc ) ;
171
- Utils . android . showSoftInput ( this . nativeTextViewProtected ) ;
170
+ if ( this . layoutView ) {
171
+ layoutView . setDescendantFocusability ( oldDesc ) ;
172
+ Utils . android . showSoftInput ( this . nativeTextViewProtected ) ;
173
+ }
172
174
// this.focus();
173
175
} , 0 ) ;
174
176
}
You can’t perform that action at this time.
0 commit comments