File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -272,11 +272,11 @@ class LottieSplashScreen : CordovaPlugin() {
272
272
animationView.addAnimatorListener(
273
273
object : Animator .AnimatorListener {
274
274
override fun onAnimationStart (animation : Animator ) {
275
- webView.engine.evaluateJavascript(" document.dispatchEvent(new Event('lottieAnimationStart'))" ) { }
275
+ webView.engine? .evaluateJavascript(" document.dispatchEvent(new Event('lottieAnimationStart'))" ) { }
276
276
}
277
277
278
278
override fun onAnimationEnd (animation : Animator ) {
279
- webView.engine.evaluateJavascript(" document.dispatchEvent(new Event('lottieAnimationEnd'))" ) { }
279
+ webView.engine? .evaluateJavascript(" document.dispatchEvent(new Event('lottieAnimationEnd'))" ) { }
280
280
val hideAfterAnimationDone = preferences.getBoolean(
281
281
" LottieHideAfterAnimationEnd" ,
282
282
false
@@ -288,11 +288,11 @@ class LottieSplashScreen : CordovaPlugin() {
288
288
}
289
289
290
290
override fun onAnimationCancel (animation : Animator ) {
291
- webView.engine.evaluateJavascript(" document.dispatchEvent(new Event('lottieAnimationCancel'))" ) { }
291
+ webView.engine? .evaluateJavascript(" document.dispatchEvent(new Event('lottieAnimationCancel'))" ) { }
292
292
}
293
293
294
294
override fun onAnimationRepeat (animation : Animator ) {
295
- webView.engine.evaluateJavascript(" document.dispatchEvent(new Event('lottieAnimationRepeat'))" ) { }
295
+ webView.engine? .evaluateJavascript(" document.dispatchEvent(new Event('lottieAnimationRepeat'))" ) { }
296
296
}
297
297
}
298
298
)
You can’t perform that action at this time.
0 commit comments