OSDN Git Service

Fix incorrect API invoke for BT profiles
authorjackqdyulei <jackqdyulei@google.com>
Tue, 18 Sep 2018 22:07:49 +0000 (15:07 -0700)
committerLei Yu <jackqdyulei@google.com>
Thu, 20 Sep 2018 19:38:26 +0000 (12:38 -0700)
commitc7a83b2552580e96b083ee9583b41d0874502121
treeb732f5e87cd4fdd075fc94efc2c5ee10bf7520e0
parent41f9566da8095bca0a382f738acf04a9d3d9520b
Fix incorrect API invoke for BT profiles

When hearing aid device has been set active, we shouldn't invoke
1. a2dpProfile.setActiveDevice()
2. hfpProfile.setActiveDevice()

Change-Id: Ie13dea041dd98d0cb9d913e1f28574b300095db9
Merged-In: Ie13dea041dd98d0cb9d913e1f28574b300095db9
Fixes: 113625278
Test: RunSettingsRoboTests
src/com/android/settings/sound/HandsFreeProfileOutputPreferenceController.java
src/com/android/settings/sound/MediaOutputPreferenceController.java
tests/robotests/src/com/android/settings/sound/HandsFreeProfileOutputPreferenceControllerTest.java
tests/robotests/src/com/android/settings/sound/MediaOutputPreferenceControllerTest.java