From c36397a14b154dd2c62edfd3921ac664aa69f2b8 Mon Sep 17 00:00:00 2001 From: ZhangWenBo <1291179520@qq.com> Date: Thu, 11 Jan 2024 21:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=B3=E5=AE=9A=E6=80=A7=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E6=95=B4=E6=94=B9master=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ZhangWenBo <1291179520@qq.com> --- common/src/main/ets/default/SettingsUtil.ts | 4 ++-- common/src/main/ets/default/TimeManager.ts | 8 ++++---- .../src/main/ets/default/viewmodel/AirplaneVM.ts | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/common/src/main/ets/default/SettingsUtil.ts b/common/src/main/ets/default/SettingsUtil.ts index 7a8e177e..8660c511 100644 --- a/common/src/main/ets/default/SettingsUtil.ts +++ b/common/src/main/ets/default/SettingsUtil.ts @@ -35,7 +35,7 @@ export class SettingsUtil { Log.showDebug(TAG, `getValue, name: ${name} defValue: ${defValue}`); let value: string = null; if (this.context == undefined || this.context == null) { - Log.showInfo(TAg,`getValue:${this.context}`); + Log.showInfo(TAG,`getValue:${this.context}`); return defValue ? defValue : ''; } try { @@ -51,7 +51,7 @@ export class SettingsUtil { Log.showDebug(TAG, `setValue, name: ${name} value: ${value}`); let result = false; if (this.context == undefined || this.context == null) { - Log.showInfo(TAg,`setValue:${this.context}`); + Log.showInfo(TAG,`setValue:${this.context}`); return false; } try { diff --git a/common/src/main/ets/default/TimeManager.ts b/common/src/main/ets/default/TimeManager.ts index 82a7344f..2505c04f 100644 --- a/common/src/main/ets/default/TimeManager.ts +++ b/common/src/main/ets/default/TimeManager.ts @@ -79,13 +79,13 @@ class TimeManager { private async initTimeFormat(context: any): Promise { Log.showDebug(TAG, "initTimeFormat"); if (context == undefined || context == null) { - log.showInfo(TAG, `initTimeFormat: ${context}`); + Log.showInfo(TAG, `initTimeFormat: ${context}`); return; } try { settings.getValueSync(context, TIME_FORMAT_KEY, "24"); } catch (err) { - log.showError(TAG, `initTimeFormat: ${context},${JSON.stringify(err)}`) + Log.showError(TAG, `initTimeFormat: ${context},${JSON.stringify(err)}`) } this.mSettingsHelper = await dataShare.createDataShareHelper(context, Constants.getUriSync(Constants.KEY_TIME_FORMAT)); @@ -95,7 +95,7 @@ class TimeManager { return; } if (context == undefined || context == null) { - log.showInfo(TAG, `handleTimeFormatChange: ${context}`); + Log.showInfo(TAG, `handleTimeFormatChange: ${context}`); return; } try { @@ -103,7 +103,7 @@ class TimeManager { Log.showDebug(TAG, `timeFormat change: ${timeString}`); this.mUse24hFormat = timeString == "24"; } catch (err) { - log.showError(TAG, `handleTimeFormatChange: ${context},${JSON.stringify(err)}`) + Log.showError(TAG, `handleTimeFormatChange: ${context},${JSON.stringify(err)}`) } this.notifyTimeChange(); }; diff --git a/features/airplanecomponent/src/main/ets/default/viewmodel/AirplaneVM.ts b/features/airplanecomponent/src/main/ets/default/viewmodel/AirplaneVM.ts index d195e802..e6dec6e5 100644 --- a/features/airplanecomponent/src/main/ets/default/viewmodel/AirplaneVM.ts +++ b/features/airplanecomponent/src/main/ets/default/viewmodel/AirplaneVM.ts @@ -39,14 +39,14 @@ class AirplaneVM implements AirplaneServiceListener { constructor() { this.context = AbilityManager.getContext(AbilityManager.getContextName(AbilityManager.ABILITY_NAME_CONTROL_PANEL)); if (this.context == undefined || this.context == null) { - log.showInfo(TAG, `constructor: ${context}`); + Log.showInfo(TAG, `constructor: ${context}`); return; } try { this.mAirplaneStatus = settings.getValueSync(this.context, Constants.KEY_AIRPLANE_MODE_STATUS, AIRPLANE_MODE_STATUS.OFF) === AIRPLANE_MODE_STATUS.ON } catch (err) { - log.showError(TAG, `AirplaneVM: ${context}, ${JSON.stringify(err)}`); + Log.showError(TAG, `AirplaneVM: ${context}, ${JSON.stringify(err)}`); } AppStorage.SetOrCreate('Airplane_Status', this.mAirplaneStatus); }