Make connection events work for conferences

Pipe through the onConnectionEvent call between the conference host
connection and the android.telecom.Conference object.

Fixes: 130404376
Test: manual
Change-Id: Ifad3e59dc9764aa2efb2b9766271e18853bf1c76
This commit is contained in:
Hall Liu
2019-04-16 14:00:55 -07:00
parent 37da9859f6
commit c9bc1c6639
2 changed files with 19 additions and 0 deletions

View File

@@ -1279,6 +1279,14 @@ public abstract class ConnectionService extends Service {
mAdapter.setCallerDisplayName(id, callerDisplayName, presentation);
}
}
@Override
public void onConnectionEvent(Conference c, String event, Bundle extras) {
String id = mIdByConference.get(c);
if (id != null) {
mAdapter.onConnectionEvent(id, event, extras);
}
}
};
private final Connection.Listener mConnectionListener = new Connection.Listener() {