From e3864ab2ea9adccbea8cf7cabe87820cbf018d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B1=9F=E6=B6=9B?= Date: Tue, 9 Apr 2024 10:18:48 +0800 Subject: [PATCH] =?UTF-8?q?4=E6=9C=881=E6=97=A5=E8=BF=9B=E8=A1=8C12?= =?UTF-8?q?=E5=B0=8F=E6=97=B6=E6=B5=8B=E8=AF=95=EF=BC=8C=E5=87=BA=E7=8E=B0?= =?UTF-8?q?jscrash=E9=97=AE=E9=A2=98=EF=BC=8C=E5=BA=94=E7=94=A8=EF=BC=9Aco?= =?UTF-8?q?m.ohos.systemu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨江涛 --- .../src/main/ets/default/viewmodel/AirplaneVM.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/airplanecomponent/src/main/ets/default/viewmodel/AirplaneVM.ts b/features/airplanecomponent/src/main/ets/default/viewmodel/AirplaneVM.ts index e6dec6e5..28d01b12 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: ${this.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: ${this.context}, ${JSON.stringify(err)}`); } AppStorage.SetOrCreate('Airplane_Status', this.mAirplaneStatus); }