mirror of
https://gitee.com/openharmony/applications_settings
synced 2024-11-27 00:20:59 +00:00
commit
8a70e59fee
@ -38,6 +38,10 @@ export class BrightnessSettingModel extends BaseModel{
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
if(!globalThis.settingsAbilityContext){
|
||||
LogUtil.info("globalThis.settingsAbilityContext is null");
|
||||
return;
|
||||
}
|
||||
data_dataShare.createDataShareHelper(globalThis.settingsAbilityContext, this.listenUri)
|
||||
.then((dataHelper) => {
|
||||
this.dataShareHelper = dataHelper;
|
||||
|
Loading…
Reference in New Issue
Block a user