From dfaf5462c40252f3f61235b4e4a36f316bc635ec Mon Sep 17 00:00:00 2001 From: Pranav Madapurmath Date: Wed, 29 Nov 2023 11:42:59 -0800 Subject: Ensure speaker on notification sent in legacy path While flagging the communication device refactor work and in reintroducing the legacy code path to set the speakerphone on/off, there was a slight deviation of not properly updating the notification bar status of the speakerphone when it is turned on. Bug: 313922145 Test: Manual (confirmed that notification wasn't showing with uncommitted changes and that issue is fixed with updated patch). Change-Id: I7fb5fbd82a977f6c36f6028dca1199a00b7bf20d --- src/com/android/server/telecom/CallAudioRouteStateMachine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/server/telecom/CallAudioRouteStateMachine.java b/src/com/android/server/telecom/CallAudioRouteStateMachine.java index bfb76d8b5..0b74cb15d 100644 --- a/src/com/android/server/telecom/CallAudioRouteStateMachine.java +++ b/src/com/android/server/telecom/CallAudioRouteStateMachine.java @@ -1844,7 +1844,7 @@ public class CallAudioRouteStateMachine extends StateMachine implements CallAudi AudioDeviceInfo.TYPE_BUILTIN_SPEAKER); } } else { - processLegacySpeakerCommunicationDevice(on); + speakerOn = processLegacySpeakerCommunicationDevice(on); } mStatusBarNotifier.notifySpeakerphone(hasAnyCalls && speakerOn); } -- cgit v1.2.3