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() {