Skip to content

Commit

Permalink
Fix the deadlock issue when onSurfaceCreated is called after setting …
Browse files Browse the repository at this point in the history
…Sync in PAGView (#2498)

Co-authored-by: kevingpqi <kevingpqi@tencent.com>
  • Loading branch information
Hparty and kevingpqi123 authored Sep 25, 2024
1 parent 7393913 commit ab16e1f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
7 changes: 0 additions & 7 deletions android/libpag/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
}
1 change: 0 additions & 1 deletion ohos/libpag/oh-package.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "Index.ets",
"author": "libpag",
"license": "Apache-2.0",
"packageType": "InterfaceHar",
"dependencies": {
"libpag.so": "file:./src/main/cpp/types/libpag"
},
Expand Down
3 changes: 3 additions & 0 deletions ohos/libpag/src/main/ets/PAGView.ets
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,9 @@ export struct PAGView {
libraryname: "pag",
})
.backgroundColor(Color.Transparent)
.onLoad(() => {
this.controller.update();
})
}

onPageShow(): void {
Expand Down
1 change: 0 additions & 1 deletion src/platform/ohos/JPAGView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,6 @@ void JPAGView::onSurfaceCreated(NativeWindow* window) {
return;
}
player->setSurface(pag::PAGSurface::MakeFrom(drawable));
animator->update();
}

void JPAGView::onSurfaceSizeChanged() {
Expand Down

0 comments on commit ab16e1f

Please sign in to comment.