From 75561e1f4de725a721d02ecc5df2a9cce629ec1d Mon Sep 17 00:00:00 2001 From: n00810144 Date: Thu, 5 Sep 2024 22:24:40 +0800 Subject: [PATCH] =?UTF-8?q?=E2=80=9D=E8=A7=84=E8=8C=83=E6=95=B4=E6=94=B9?= =?UTF-8?q?=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: n00810144 --- entry/src/main/ets/Application/MyAbilityStage.ts | 2 +- entry/src/main/ets/common/utils/CallUtils.ts | 2 +- entry/src/main/ets/pages/index.ets | 15 ++++++++------- mobiledatasettings/src/main/ets/pages/index.ets | 4 ++-- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/entry/src/main/ets/Application/MyAbilityStage.ts b/entry/src/main/ets/Application/MyAbilityStage.ts index 234d744..fa45d4d 100644 --- a/entry/src/main/ets/Application/MyAbilityStage.ts +++ b/entry/src/main/ets/Application/MyAbilityStage.ts @@ -27,7 +27,7 @@ export default class MyAbilityStage extends AbilityStage { if (err) { LogUtils.e(TAG, 'enableNotification err: ' + JSON.stringify(err)); } - }) + }); LogUtils.i(TAG, 'MyAbilityStage onCreate'); } diff --git a/entry/src/main/ets/common/utils/CallUtils.ts b/entry/src/main/ets/common/utils/CallUtils.ts index 7f8bc82..c173d8d 100644 --- a/entry/src/main/ets/common/utils/CallUtils.ts +++ b/entry/src/main/ets/common/utils/CallUtils.ts @@ -68,7 +68,7 @@ export class CallUtils { slotId: 0 }).then((res) => { resolve(res); - AppStorage.SetOrCreate('IsEmergencyPhoneNumber', res) + AppStorage.SetOrCreate('IsEmergencyPhoneNumber', res); LogUtils.i(TAG, 'then:isEmergencyPhoneNumber :' + JSON.stringify(res)); }).catch((err) => { reject(err); diff --git a/entry/src/main/ets/pages/index.ets b/entry/src/main/ets/pages/index.ets index a68fced..062cdde 100644 --- a/entry/src/main/ets/pages/index.ets +++ b/entry/src/main/ets/pages/index.ets @@ -142,7 +142,7 @@ struct Index { this.mCallDataManager.clearCall(this.callData); } }); - } catch(err) { + } catch (err) { LogUtils.e(TAG, `initAirPlaneMode err = ${JSON.stringify(err)}`); } } @@ -234,9 +234,9 @@ struct Index { * @return {boolean} - isTripleCall */ private isTripleCall() { - return (this.callData.callState === CallStateConst.callStateObj.CALL_STATUS_WAITING - || this.callData.callState === CallStateConst.callStateObj.CALL_STATUS_INCOMING) - && this.callList.length === 3; + return (this.callData.callState === CallStateConst.callStateObj.CALL_STATUS_WAITING || + this.callData.callState === CallStateConst.callStateObj.CALL_STATUS_INCOMING) && + this.callList.length === 3; } pageTransition() { @@ -248,14 +248,15 @@ struct Index { if (this.callList.length > 1) { let btnState = true; this.callList.forEach((v) => { - if (v.callState === CallStateConst.callStateObj.CALL_STATUS_WAITING || v.callState === CallStateConst.callStateObj.CALL_STATUS_INCOMING) { + if (v.callState === CallStateConst.callStateObj.CALL_STATUS_WAITING || + v.callState === CallStateConst.callStateObj.CALL_STATUS_INCOMING) { btnState = false; } }); return btnState; } else { - return this.callState() !== CallStateConst.callStateObj.CALL_STATUS_WAITING - && this.callState() !== CallStateConst.callStateObj.CALL_STATUS_INCOMING + return this.callState() !== CallStateConst.callStateObj.CALL_STATUS_WAITING && + this.callState() !== CallStateConst.callStateObj.CALL_STATUS_INCOMING } } diff --git a/mobiledatasettings/src/main/ets/pages/index.ets b/mobiledatasettings/src/main/ets/pages/index.ets index 6a9dbea..a59536e 100644 --- a/mobiledatasettings/src/main/ets/pages/index.ets +++ b/mobiledatasettings/src/main/ets/pages/index.ets @@ -304,7 +304,7 @@ struct Index { getCellularDataRoamingEnabled() { isCellularDataRoamingEnabledCardOne().then((res) => { - LogUtils.i(TAG,'getCellularDataRoamingEnabled card one success then:' + JSON.stringify(res)); + LogUtils.i(TAG, 'getCellularDataRoamingEnabled card one success then:' + JSON.stringify(res)); this.dataRoamSwitchCardOne = res; }).catch((err) => { this.dataRoamSwitchCardOne = false; @@ -312,7 +312,7 @@ struct Index { }); if (getMaxSimCount() === 2) { isCellularDataRoamingEnabledCardTwo().then((res) => { - LogUtils.i(TAG,'getCellularDataRoamingEnabled card two success then:' + JSON.stringify(res)); + LogUtils.i(TAG, 'getCellularDataRoamingEnabled card two success then:' + JSON.stringify(res)); this.dataRoamSwitchCardTwo = res; }).catch((err) => { this.dataRoamSwitchCardTwo = false;