mirror of
https://gitee.com/openharmony/applications_call
synced 2024-11-27 00:20:46 +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);
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user