!771 进程com.ohos.settings由于THREAD_BLOCK_6S卡在libuv.so发生appfreeze

Merge pull request !771 from 侯志雄/OpenHarmony-5.0.1-Release
This commit is contained in:
openharmony_ci 2024-10-28 11:47:27 +00:00 committed by Gitee
commit f7ef75cb8d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 1 deletions

View File

@ -175,7 +175,7 @@ export class AppManagementModel extends BaseModel {
* @param bundleName bundle name
*/
cleanBundleCacheFiles(bundleName: string, callback) {
Bundle.cleanBundleCacheFiles(bundleName, callback);
bundleManager.cleanBundleCacheFiles(bundleName, callback);
}
/**

View File

@ -153,6 +153,7 @@ struct ApplicationStorage {
.backgroundColor($r("sys.color.ohos_id_color_foreground_contrary"));
ButtonComponent({ text: $r("app.string.clearCacheTab"), onClickEvent: () => {
LogUtil.info('settings ApplicationStorage clearCache');
if (appInfo && appInfo.settingBundleName) {
this.controller.cleanBundleCacheFiles(appInfo.settingBundleName);
}