diff options
author | Andrew Lee <anwlee@google.com> | 2014-10-16 15:39:30 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2014-10-17 10:38:02 -0700 |
commit | 4b116453e8ea6177265794a55e19d19466d85af7 (patch) | |
tree | 85cc60a22231d2850a368f1f62399f57444eb7ce /telecomm/java/android/telecom/Connection.java | |
parent | 512c2330c652c56996bf3ef63ddad242752cebcd (diff) | |
download | frameworks_base-4b116453e8ea6177265794a55e19d19466d85af7.zip frameworks_base-4b116453e8ea6177265794a55e19d19466d85af7.tar.gz frameworks_base-4b116453e8ea6177265794a55e19d19466d85af7.tar.bz2 |
Add functions to update on conference changes.
+ Add onConferenceChanged() to Connection, so that the Connection can
make act on changes to the conference.
+ Add a utility function to PhoneCapabilities to remove a capability
from a PhoneCapabilities bitmask. Figure this abstracts some bit
logic away to make things more readable.
Bug: 17429707
Change-Id: I0c97731a95dd6573488cd10f094a63abe2428bce
Diffstat (limited to 'telecomm/java/android/telecom/Connection.java')
-rw-r--r-- | telecomm/java/android/telecom/Connection.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java index 51f193f..44fa157 100644 --- a/telecomm/java/android/telecom/Connection.java +++ b/telecomm/java/android/telecom/Connection.java @@ -911,6 +911,7 @@ public abstract class Connection { mConference = conference; if (mConnectionService != null && mConnectionService.containsConference(conference)) { fireConferenceChanged(); + onConferenceChanged(); } return true; } @@ -1009,6 +1010,11 @@ public abstract class Connection { */ public void onPostDialContinue(boolean proceed) {} + /** + * Notifies this Connection that the conference which is set on it has changed. + */ + public void onConferenceChanged() {} + static String toLogSafePhoneNumber(String number) { // For unknown number, log empty string. if (number == null) { |