Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba45d05c authored by Tyler Gunn's avatar Tyler Gunn Committed by android-build-merger
Browse files

Merge "Remove Listener dependency in the telecom test app."

am: 83b03309

Change-Id: If8e64c556fabbaf1036b5836f25f10168f52a996
parents 7c8c02da 83b03309
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -79,17 +79,6 @@ public class TestConnectionService extends ConnectionService {

    private final class TestConference extends Conference {

        private final Connection.Listener mConnectionListener = new Connection.Listener() {
            @Override
            public void onDestroyed(Connection c) {
                removeConnection(c);
                if (getConnections().size() == 0) {
                    setDisconnected(new DisconnectCause(DisconnectCause.REMOTE));
                    destroy();
                }
            }
        };

        public TestConference(Connection a, Connection b) {
            super(null);
            setConnectionCapabilities(
@@ -100,9 +89,6 @@ public class TestConnectionService extends ConnectionService {
            addConnection(a);
            addConnection(b);

            a.addConnectionListener(mConnectionListener);
            b.addConnectionListener(mConnectionListener);

            a.setConference(this);
            b.setConference(this);

@@ -122,7 +108,6 @@ public class TestConnectionService extends ConnectionService {
            if (getConnections().contains(connection)) {
                connection.setConference(null);
                removeConnection(connection);
                connection.removeConnectionListener(mConnectionListener);
            }
        }