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

Commit 17228b57 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 7272808 from 0f8e7964 to sc-release

Change-Id: I1997092ba030a3c02a4879ac5e9455fcf187b8cc
parents 90d18db4 0f8e7964
Loading
Loading
Loading
Loading
+14 −10
Original line number Diff line number Diff line
@@ -208,19 +208,23 @@ public class CallButtonPresenter
    int newRoute;
    if (audioState.getRoute() == CallAudioState.ROUTE_SPEAKER) {
      newRoute = CallAudioState.ROUTE_WIRED_OR_EARPIECE;
      if (call != null) {
        Logger.get(context)
                .logCallImpression(
                        DialerImpression.Type.IN_CALL_SCREEN_TURN_ON_WIRED_OR_EARPIECE,
                        call.getUniqueCallId(),
                        call.getTimeAddedMs());
      }
    } else {
      newRoute = CallAudioState.ROUTE_SPEAKER;
      if (call != null) {
        Logger.get(context)
                .logCallImpression(
                        DialerImpression.Type.IN_CALL_SCREEN_TURN_ON_SPEAKERPHONE,
                        call.getUniqueCallId(),
                        call.getTimeAddedMs());
      }
    }

    setAudioRoute(newRoute);
  }