mirror of
https://gitee.com/openharmony/applications_settings
synced 2024-11-22 22:09:58 +00:00
update common/utils/src/main/ets/default/baseUtil/PreferenceUtil.ts.
Signed-off-by: 侯志雄 <houzhixiong1@h-partners.com>
This commit is contained in:
parent
25d75f043b
commit
5416f61cad
@ -19,6 +19,7 @@ import { GlobalContext } from './GlobalContext';
|
||||
|
||||
//import Storage from '@ohos.data.storage';
|
||||
|
||||
// let preference = Storage.getStorageSync(ConfigData.PREFERENCES_PATH);
|
||||
this.storage = await dataStorage.getPreferences(
|
||||
GlobalContext.getContext().getObject(GlobalContext.globalKeySettingsAbilityContext), ConfigData.PREFERENCES_PATH);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user