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

Commit a5d04863 authored by weijiaxu's avatar weijiaxu Committed by Copybara-Service
Browse files

Fix for NonSimulatorConnection listener causing dialer crashing after ending a call.

Bug: 73903013
Test: On a local device.
PiperOrigin-RevId: 187114719
Change-Id: I9cd0ee8ee33c5711f68ed78d3181347ae439f2b6
parent 5800262b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -30,6 +30,11 @@ final class NonSimulatorConnectionListener implements SimulatorConnection.Listen
  @Override
  public void onEvent(@NonNull SimulatorConnection connection, @NonNull Event event) {
    switch (event.type) {
      case Event.STATE_CHANGE:
        LogUtil.i(
            "SimulatorVoiceCall.onEvent",
            String.format("state changed from %s to %s ", event.data1, event.data2));
        break;
      case Event.REJECT:
        connection.setDisconnected(new DisconnectCause(DisconnectCause.REJECTED));
        break;