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;