Skip to content

Commit 6c6a7f6

Browse files
Hansong ZhangAndroid Build Coastguard Worker
authored andcommitted
Bluetooth: Fix formatting in getAlias()
Bug: 180747689 Test: manual Change-Id: Ic309f4aad116fd424d5d0d0e2016d61be8826b78 (cherry picked from commit 3c4a917cb9481f4b70c26b6a06e798e65e5895ce)
1 parent b3ae74f commit 6c6a7f6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

core/java/android/bluetooth/BluetoothDevice.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,10 @@ public String getAlias() {
10811081
if (alias == null) {
10821082
return getName();
10831083
}
1084-
return alias;
1084+
return alias
1085+
.replace('\t', ' ')
1086+
.replace('\n', ' ')
1087+
.replace('\r', ' ');
10851088
} catch (RemoteException e) {
10861089
Log.e(TAG, "", e);
10871090
}

0 commit comments

Comments
 (0)