Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Audio Issues when Rotating Device #145

Merged
merged 9 commits into from
Mar 29, 2022

Conversation

ahammer
Copy link
Member

@ahammer ahammer commented Mar 28, 2022

Purpose

  • Bluetooth was cutting out
  • Speaker was jumping back to Bluetooth

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

Also fixes speaker->bluetooth jumping on rotating
@ahammer ahammer requested review from a team as code owners March 28, 2022 19:28
ShaunaSong
ShaunaSong previously approved these changes Mar 28, 2022
Copy link
Member

@jamchengms jamchengms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one minor thing i noticed in code

val audioManager = context.getSystemService(Context.AUDIO_SERVICE) as AudioManager
audioManager is initialized in isHeadsetActive() instead of start

does it make sense we only set the audioManager once in the start() instead?

@ahammer
Copy link
Member Author

ahammer commented Mar 28, 2022

one minor thing i noticed in code

val audioManager = context.getSystemService(Context.AUDIO_SERVICE) as AudioManager audioManager is initialized in isHeadsetActive() instead of start

does it make sense we only set the audioManager once in the start() instead?

Deleted, it comes from constructor, didn't need it there.

jamchengms
jamchengms previously approved these changes Mar 28, 2022
lpeixin
lpeixin previously approved these changes Mar 28, 2022
@ahammer ahammer dismissed stale reviews from lpeixin and jamchengms via 5f556e0 March 28, 2022 20:52
@iaulakh
Copy link
Member

iaulakh commented Mar 29, 2022

tested

Copy link
Contributor

@phileo99 phileo99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested, ran Espresso UI tests.
LGTM
👍

@ahammer ahammer merged commit 341eaf9 into release/1.0.0-beta.2 Mar 29, 2022
@ahammer ahammer deleted the bug/audio_cutout_on_rotating branch March 29, 2022 23:27
phileo99 pushed a commit that referenced this pull request Apr 6, 2022
* develop/beta:
  [Bug] fix test syntax (#177)
  [Bug] Fix feature flags crash when application context is not Initialized (#175)
  [Documentation] readme update (#155)
  [Documentation] Update changelog for beta 2 release (#165)
  [Refactor] Address Azure review feedback (#164)
  [Feature] Suggest to update App if new version is available (#169)
  [Bug] Update String Translation  (#162)
  [Refactor] Remove generics from error handling public API and rename ErroEvent to CommunicationUIErrorEvent
  [Bug] empty banner view is displayed for stopped transcription and audio recording on screen rotate (#158)
  [Refactor] Refactoring and code clean up of supported language related files (#149)
  [Bug] Fixed banner text formatting (#153)
  [Refactor] update version (#151)
  [Refactor] Rename method (#147)
  [Bug] Address UI Test Failures (#138) (#148)
  [BUG] Audio Issues when Rotating Device (#145)
  [Bug] Update translation string (#144)
  [Config] Update code owners (#23)

# Conflicts:
#	azure-communication-ui/azure-communication-ui/src/main/java/com/azure/android/communication/ui/presentation/fragment/setup/components/ErrorInfoView.kt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants