commit | 31ed9becf01386eb721ffc5803d5a8a6c64cd4cf | [log] [tgz] |
---|---|---|
author | Hall Liu <hallliu@google.com> | Wed Apr 06 12:07:31 2016 -0700 |
committer | Hall Liu <hallliu@google.com> | Wed Apr 06 12:07:31 2016 -0700 |
tree | f0903eba7258ed38aa697abf004300d16c6bb745 | |
parent | 7a7a344de1a1dbc6b8171975ef18835bd2fbd598 [diff] |
Use AudioManager#getDevices in WiredHeadsetManager AudioManager#getDevicesForStream returns only speakerphone when a call is in progress and speakerphone is turned on. This prevents detection of a wired headset being plugged in. Now uses AudioManager#getDevices instead, which returns all connected devices. Change-Id: I3bdaca6d77b2444b47971b72a3c7a8450eb50178 Fixes: 28025980