[automerger] DO NOT MERGE Truncate newline and tab characters in BluetoothDevice name am: b6cde9ecc1
Change-Id: I3f951fac78c6e2da84eac511d3b0e19141e90153
This commit is contained in:
@@ -727,7 +727,11 @@ public final class BluetoothDevice implements Parcelable {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
return sService.getRemoteName(this);
|
||||
String name = sService.getRemoteName(this);
|
||||
if (name != null) {
|
||||
return name.replaceAll("[\\t\\n\\r]+", " ");
|
||||
}
|
||||
return null;
|
||||
} catch (RemoteException e) {Log.e(TAG, "", e);}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user