mirror of
https://gitee.com/openharmony/applications_call
synced 2024-11-22 22:09:41 +00:00
”规范整改“
Signed-off-by: n00810144 <niuliming@huawei.com>
This commit is contained in:
parent
c5daa3de9e
commit
75561e1f4d
@ -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');
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user