Refactor usages of getAliasName to use getAlias in Settings

Bug: 142352567
Test: Manual
Change-Id: I40af1b1e0453900fd888317ae46b20ef359db473
This commit is contained in:
Rahul Sabnis
2019-10-22 15:34:40 -07:00
parent a67ca4cfd7
commit c96469f2bd
5 changed files with 7 additions and 7 deletions

View File

@@ -149,14 +149,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