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

Commit 2b310bbf authored by weijiaxu's avatar weijiaxu Committed by android-build-merger
Browse files

Merge "set connection state after adding NonSimulatorConnectionListener and...

Merge "set connection state after adding NonSimulatorConnectionListener and set connection to active at the end."
am: ac3d0e58

Change-Id: If5c61e6612ce4b804c7882afb5241cc03b1bd617
parents 7646e217 ac3d0e58
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -84,7 +84,6 @@ public class SimulatorConnectionService extends ConnectionService {
      return null;
    }
    SimulatorConnection connection = new SimulatorConnection(this, request);
    connection.setDialing();
    if (SimulatorSimCallManager.isSimulatorConnectionRequest(request)) {
      simulatorConnectionsBank.add(connection);
      connection.setAddress(
@@ -92,6 +91,7 @@ public class SimulatorConnectionService extends ConnectionService {
          request
              .getExtras()
              .getInt(Simulator.PRESENTATION_CHOICE, TelecomManager.PRESENTATION_ALLOWED));
      connection.setDialing();
      ThreadUtil.postOnUiThread(
          () ->
              SimulatorComponent.get(instance)
@@ -107,6 +107,8 @@ public class SimulatorConnectionService extends ConnectionService {
      connection.putExtras(extras);
      simulatorConnectionsBank.add(connection);
      connection.addListener(new NonSimulatorConnectionListener());
      connection.setDialing();
      ThreadUtil.postOnUiThread(connection::setActive);
    }
    return connection;
  }