diff --git a/android/libpag/build.gradle b/android/libpag/build.gradle index 258797a310..375e96c1cf 100644 --- a/android/libpag/build.gradle +++ b/android/libpag/build.gradle @@ -202,10 +202,3 @@ project.afterEvaluate { } } } - -buildscript { - repositories { - maven { url "https://mirrors.tencent.com/nexus/repository/maven-public/" } - } - dependencies { classpath 'com.github.panpf.bintray-publish:bintray-publish:1.0.0' } -} diff --git a/ohos/libpag/oh-package.json5 b/ohos/libpag/oh-package.json5 index c829d78a6e..56e24d1c7c 100644 --- a/ohos/libpag/oh-package.json5 +++ b/ohos/libpag/oh-package.json5 @@ -5,7 +5,6 @@ "main": "Index.ets", "author": "libpag", "license": "Apache-2.0", - "packageType": "InterfaceHar", "dependencies": { "libpag.so": "file:./src/main/cpp/types/libpag" }, diff --git a/ohos/libpag/src/main/ets/PAGView.ets b/ohos/libpag/src/main/ets/PAGView.ets index 7c2a631d33..3163093f03 100644 --- a/ohos/libpag/src/main/ets/PAGView.ets +++ b/ohos/libpag/src/main/ets/PAGView.ets @@ -462,6 +462,9 @@ export struct PAGView { libraryname: "pag", }) .backgroundColor(Color.Transparent) + .onLoad(() => { + this.controller.update(); + }) } onPageShow(): void { diff --git a/src/platform/ohos/JPAGView.cpp b/src/platform/ohos/JPAGView.cpp index 4565d69327..a84138346f 100644 --- a/src/platform/ohos/JPAGView.cpp +++ b/src/platform/ohos/JPAGView.cpp @@ -874,7 +874,6 @@ void JPAGView::onSurfaceCreated(NativeWindow* window) { return; } player->setSurface(pag::PAGSurface::MakeFrom(drawable)); - animator->update(); } void JPAGView::onSurfaceSizeChanged() {