Skip to content

Commit

Permalink
Blind fix for outgoing "caller id" (displaying who you are dialing)
Browse files Browse the repository at this point in the history
  • Loading branch information
penn5 committed Mar 16, 2019
1 parent 143ba28 commit fbf782c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/src/main/java/com/huawei/ims/HwImsCallSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,12 @@ public void updateCall(RILImsCall call) {
break;
}


mProfile.setCallExtra(EXTRA_OI, "+" + call.number);
mProfile.setCallExtra(EXTRA_CNA, call.name.isEmpty() ? call.number : call.name);
mProfile.setCallExtraInt(EXTRA_OIR, ImsCallProfile.presentationToOir(call.numberPresentation));
mProfile.setCallExtraInt(EXTRA_CNAP, ImsCallProfile.presentationToOir(call.namePresentation));
if (call.isMT > 0) { // OI is the originating identity, it should only be set for incoming calls
mProfile.setCallExtra(EXTRA_OI, "+" + call.number);
mProfile.setCallExtra(EXTRA_CNA, call.name.isEmpty() ? call.number : call.name);
mProfile.setCallExtraInt(EXTRA_OIR, ImsCallProfile.presentationToOir(call.numberPresentation));
mProfile.setCallExtraInt(EXTRA_CNAP, ImsCallProfile.presentationToOir(call.namePresentation));
}

mCallee = call.number;

Expand Down

0 comments on commit fbf782c

Please sign in to comment.