mirror of
https://gitee.com/openharmony/applications_settings
synced 2024-11-27 00:20:59 +00:00
!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:
commit
f7ef75cb8d
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user