Merge "Bluetooth: Fix formatting in getAlias()" into rvc-dev am: 16a307631e am: f6db6bcb3e am: a6e0765cab am: 03567d8023

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15616111

Change-Id: I7bef2353b51718b8dfc4e16d9bd47e53e880fda4
This commit is contained in:
TreeHugger Robot
2021-08-31 23:44:17 +00:00
committed by Automerger Merge Worker

View File

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