Merge "Refactor usages of getAliasName to use getAlias in Settings" am: eed0f8816b
am: 4f85f36e7d
am: 2a60040d29
Change-Id: If24afc1a316da64fbf49ad08ee761e5af7dde4b7
This commit is contained in:
@@ -148,14 +148,14 @@ public class MediaOutputIndicatorSlice implements CustomSliceable {
|
||||
// Return Hearing Aid device name if it is active
|
||||
BluetoothDevice activeDevice = findActiveHearingAidDevice();
|
||||
if (activeDevice != null) {
|
||||
return activeDevice.getAliasName();
|
||||
return activeDevice.getAlias();
|
||||
}
|
||||
// Return A2DP device name if it is active
|
||||
final A2dpProfile a2dpProfile = mProfileManager.getA2dpProfile();
|
||||
if (a2dpProfile != null) {
|
||||
activeDevice = a2dpProfile.getActiveDevice();
|
||||
if (activeDevice != null) {
|
||||
return activeDevice.getAliasName();
|
||||
return activeDevice.getAlias();
|
||||
}
|
||||
}
|
||||
// No active device, return default summary
|
||||
|
Reference in New Issue
Block a user