summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranav Madapurmath <pmadapurmath@google.com>2023-11-29 11:42:59 -0800
committerPranav Madapurmath <pmadapurmath@google.com>2023-11-29 11:42:59 -0800
commitdfaf5462c40252f3f61235b4e4a36f316bc635ec (patch)
tree845345eabc77a85cfc627a7d64158e61d5b779af
parent5e141f9d4516c1eddb7827e6a9b93107d659a9f7 (diff)
downloadTelecomm-dfaf5462c40252f3f61235b4e4a36f316bc635ec.tar.gz
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
-rw-r--r--src/com/android/server/telecom/CallAudioRouteStateMachine.java2
1 files changed, 1 insertions, 1 deletions
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);
}