summaryrefslogtreecommitdiffstats
path: root/src/com/android/incallui/Call.java
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2015-10-06 13:05:17 -0700
committerTyler Gunn <tgunn@google.com>2015-10-06 13:05:17 -0700
commit7a2da71d22645d619e04b1704138f183a5e47724 (patch)
tree368978e9c27a00ef5dcf13dae18a7167ca5ca2ef /src/com/android/incallui/Call.java
parentefabe88a8dc60d6f9187bebc4756f0bdedfcb925 (diff)
downloadpackages_apps_InCallUI-7a2da71d22645d619e04b1704138f183a5e47724.tar.gz
packages_apps_InCallUI-7a2da71d22645d619e04b1704138f183a5e47724.tar.bz2
packages_apps_InCallUI-7a2da71d22645d619e04b1704138f183a5e47724.zip
Handle child number changes after the call starts.
The child number display functionality assumed that the child number for a call would only bet set at the start of the call. This change removes that assumption and supports changes to the child number at any point during the call by adding a new listener to the InCall Call List. It appears there are some instances in reality where the child number can come in after the start of a call (delayed only slightly, but enough to prevent the number from showing up). Bug: 24585039 Change-Id: I23148e8c4265f1bc16ce563f2919e9b3eb71784f
Diffstat (limited to 'src/com/android/incallui/Call.java')
-rw-r--r--src/com/android/incallui/Call.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/incallui/Call.java b/src/com/android/incallui/Call.java
index 01205ff1..16a53b29 100644
--- a/src/com/android/incallui/Call.java
+++ b/src/com/android/incallui/Call.java
@@ -334,12 +334,13 @@ public class Call {
Bundle callExtras = mTelecommCall.getDetails().getExtras();
if (callExtras != null) {
- // Child address arrives when the call is first set up, so we do not need to notify the
- // UI of this.
+ // Check for a change in the child address and notify any listeners.
if (callExtras.containsKey(Connection.EXTRA_CHILD_ADDRESS)) {
String childNumber = callExtras.getString(Connection.EXTRA_CHILD_ADDRESS);
+
if (!Objects.equals(childNumber, mChildNumber)) {
mChildNumber = childNumber;
+ CallList.getInstance().onChildNumberChange(this);
}
}