From 41c0bf9961f46e4389b28a4ac695eca9c2046e0b Mon Sep 17 00:00:00 2001 From: duqingquan-jpc Date: Wed, 21 Dec 2022 19:08:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=20=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E6=97=A7=E7=9A=84api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-animation-view/utssdk/app-android/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uni_modules/uts-animation-view/utssdk/app-android/index.vue b/uni_modules/uts-animation-view/utssdk/app-android/index.vue index 919f52f..391e007 100644 --- a/uni_modules/uts-animation-view/utssdk/app-android/index.vue +++ b/uni_modules/uts-animation-view/utssdk/app-android/index.vue @@ -88,7 +88,7 @@ let lottieAnimationView = this.$el - if (lottieAnimationView != null && !TextUtils.isEmpty(newPath)) { + if (TextUtils.isEmpty(newPath)) { if (newPath.startsWith("http://") || newPath.startsWith("https://")) { lottieAnimationView.setAnimationFromUrl(newPath) } else { @@ -183,7 +183,7 @@ }, NVLoad(): LottieAnimationView { //创建原生View,必须定义返回值类型(Android需要明确知道View类型,需特殊校验) //必须实现 - let lottieAnimationView = new LottieAnimationView(getContext()) + let lottieAnimationView = new LottieAnimationView(this.$androidContext) return lottieAnimationView }, NVLoaded() { //原生View已创建 -- GitLab