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

Commit 0ed650e2 authored by weijiaxu's avatar weijiaxu Committed by android-build-merger
Browse files

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

am: 46cdf805

Change-Id: I51dd081ee48a4d89ad81499db12979cfc9f5b4c1
parents d64844f4 46cdf805
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;