”规范整改“

Signed-off-by: n00810144 <niuliming@huawei.com>
This commit is contained in:
n00810144 2024-09-05 22:24:40 +08:00
parent c5daa3de9e
commit 75561e1f4d
4 changed files with 12 additions and 11 deletions

View File

@ -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');
}

View File

@ -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);

View File

@ -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
}
}

View File

@ -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;