修复在点击home后无法重启应用

Merge pull request  from lastking/master
This commit is contained in:
openharmony_ci 2022-02-09 06:27:44 +00:00 committed by Gitee
commit 768e916204
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -96,6 +96,7 @@ void RSRenderThread::Start()
{
ROSEN_LOGD("RSRenderThread start.");
running_.store(true);
SetBackgroundStatus(false);
if (thread_ == nullptr) {
thread_ = std::make_unique<std::thread>(&RSRenderThread::RenderLoop, this);
}