Merge "Bluetooth: Fix formatting in getAlias()" into rvc-dev

This commit is contained in:
TreeHugger Robot
2021-08-31 22:39:51 +00:00
committed by Android (Google) Code Review

View File

@@ -1081,7 +1081,10 @@ public final class BluetoothDevice implements Parcelable {
if (alias == null) {
return getName();
}
return alias;
return alias
.replace('\t', ' ')
.replace('\n', ' ')
.replace('\r', ' ');
} catch (RemoteException e) {
Log.e(TAG, "", e);
}