Merge "Fix incorrect API invoke for BT profiles" am: 625c1eeaa9
am: dbc26b576c
Change-Id: Ic6b7a4b7541310b3a635b94a799e3476cf5cc684
This commit is contained in:
@@ -100,12 +100,9 @@ public class HandsFreeProfileOutputPreferenceController extends
|
||||
if (hapProfile != null && hfpProfile != null && device == null) {
|
||||
hfpProfile.setActiveDevice(null);
|
||||
hapProfile.setActiveDevice(null);
|
||||
return;
|
||||
}
|
||||
if (hapProfile != null && hapProfile.getHiSyncId(device) != HI_SYNC_ID_INVALID) {
|
||||
} else if (hapProfile != null && hapProfile.getHiSyncId(device) != HI_SYNC_ID_INVALID) {
|
||||
hapProfile.setActiveDevice(device);
|
||||
}
|
||||
if (hfpProfile != null) {
|
||||
} else if (hfpProfile != null) {
|
||||
hfpProfile.setActiveDevice(device);
|
||||
}
|
||||
}
|
||||
|
@@ -112,12 +112,9 @@ public class MediaOutputPreferenceController extends AudioSwitchPreferenceContro
|
||||
if (hapProfile != null && a2dpProfile != null && device == null) {
|
||||
hapProfile.setActiveDevice(null);
|
||||
a2dpProfile.setActiveDevice(null);
|
||||
return;
|
||||
}
|
||||
if (hapProfile != null && hapProfile.getHiSyncId(device) != HI_SYNC_ID_INVALID) {
|
||||
} else if (hapProfile != null && hapProfile.getHiSyncId(device) != HI_SYNC_ID_INVALID) {
|
||||
hapProfile.setActiveDevice(device);
|
||||
}
|
||||
if (a2dpProfile != null) {
|
||||
} else if (a2dpProfile != null) {
|
||||
a2dpProfile.setActiveDevice(device);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user