commit | 5734eae8718fdb53cef6464fd1c18aa32ae8e48b | [log] [tgz] |
---|---|---|
author | Hansong Zhang <hsz@google.com> | Wed Aug 18 16:35:00 2021 -0700 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon Sep 20 22:30:05 2021 +0000 |
tree | 35d15473df1529984beb11798977e196c475a524 | |
parent | b831ff165c14d2cd25cfd4e7125b529569db2b97 [diff] |
Bluetooth: Fix formatting in getAlias() Bug: 180747689 Test: manual Change-Id: Ic309f4aad116fd424d5d0d0e2016d61be8826b78 (cherry picked from commit 3c4a917cb9481f4b70c26b6a06e798e65e5895ce)
diff --git a/core/java/android/bluetooth/BluetoothDevice.java b/core/java/android/bluetooth/BluetoothDevice.java index bbb550f..5a5fac4 100644 --- a/core/java/android/bluetooth/BluetoothDevice.java +++ b/core/java/android/bluetooth/BluetoothDevice.java
@@ -1329,7 +1329,10 @@ if (alias == null) { return getName(); } - return alias; + return alias + .replace('\t', ' ') + .replace('\n', ' ') + .replace('\r', ' '); } catch (RemoteException e) { Log.e(TAG, "", e); }