Merge "DO NOT MERGE Bluetooth: Fix formatting in getAlias()" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
44dc2b273b
@@ -894,7 +894,14 @@ public final class BluetoothDevice implements Parcelable {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
return service.getRemoteAlias(this);
|
||||
String alias = service.getRemoteAlias(this);
|
||||
if (alias == null) {
|
||||
return getName();
|
||||
}
|
||||
return alias
|
||||
.replace('\t', ' ')
|
||||
.replace('\n', ' ')
|
||||
.replace('\r', ' ');
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user