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
This commit is contained in:
Andrew Lee
2014-10-16 15:39:30 -07:00
parent 512c2330c6
commit 4b116453e8
3 changed files with 18 additions and 0 deletions

View File

@@ -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) {