fix code warning

Signed-off-by: ZhuGangQiang <zhugangqiang3@huawei.com>
This commit is contained in:
ZhuGangQiang 2024-06-04 16:43:33 +08:00
parent 935b0fb343
commit a787d943b8
2 changed files with 5 additions and 1 deletions

View File

@ -60,6 +60,7 @@ Note: If the text contains special characters, please escape them according to t
<filefilterlist>
<filefilter name="defaultFilter" desc="Files that do not need to be scanned">
<filteritem type="filename" name="*.cfg" desc="cfg no need to add policy"/>
<filteritem type="filepath" name="frameworks/bootanimation/data/bootvideo.mp4" desc="default video"/>
</filefilter>
<filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies" >
<filteritem type="filename" name="graphic.png" desc="readme graphic png"/>

View File

@ -251,5 +251,8 @@ void BootAnimationOperation::StopBootAnimation()
system::SetParameter(BOOT_ANIMATION_STARTED, "true");
LOGI("set boot animation started true");
}
mainHandler_->PostTask(std::bind(&AppExecFwk::EventRunner::Stop, runner_));
if (runner_ != nullptr) {
runner_->Stop();
}
mainHandler_ = nullptr;
}