Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
M
mpd
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Registry
    • Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Иван Мажукин
  • mpd
  • Repository

Switch branch/tag
  • mpd
  • android
  • src
  • Main.java
Find file
BlameHistoryPermalink
  • Sam Bazley's avatar
    Android: Detect output change with ACTION_AUDIO_BECOMING_NOISY · 49837033
    Sam Bazley authored Jan 04, 2022
    Improves the changes made in 57687779 by
    using AudioManager.ACTION_AUDIO_BECOMING_NOISY rather than listening for
    wired headset unplug events or Bluetooth headset disconnect events. This
    method is more flexible, allowing the feature to work on other types of
    audio output device, as well as Bluetooth devices that don't set their
    device class correctly. This change also has the benefit of being more
    responsive, pausing the audio before it is rerouted to the built-in
    speaker.
    
    https://developer.android.com/guide/topics/media-apps/volume-and-earphones
    49837033
Main.java 12.5 KB
EditWeb IDE

Replace Main.java

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.