Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 199d4efc authored by Android Build Merger (Role)'s avatar Android Build Merger (Role)
Browse files

[automerger] DO NOT MERGE Truncate newline and tab characters in...

[automerger] DO NOT MERGE Truncate newline and tab characters in BluetoothDevice name am: 32aa6476 am: a8ea95fd am: 4a7c9cc9 am: 3dd00e56

Change-Id: I6e5bf8c2f05f44bc292f4c0ec1fcc885a4a24655
parents e253a74e 3dd00e56
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -727,7 +727,11 @@ public final class BluetoothDevice implements Parcelable {
            return null;
            return null;
        }
        }
        try {
        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);}
        } catch (RemoteException e) {Log.e(TAG, "", e);}
        return null;
        return null;
    }
    }