Merge changes from topic "am-01dfab30-af7a-4b8d-97d8-55bde12588f9-nyc-dev" into nyc-dr1-dev
* changes:
[automerger] DO NOT MERGE Truncate newline and tab characters in BluetoothDevice name am: b6cde9ecc1
DO NOT MERGE Truncate newline and tab characters in BluetoothDevice name
This commit is contained in:
committed by
Android (Google) Code Review
commit
c5e594b55f
@@ -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