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

Commit 3bdad2df authored by Hansong Zhang's avatar Hansong Zhang
Browse files

DO NOT MERGE Bluetooth: Fix formatting in getAlias()

Bug: 180747689
Test: manual
Change-Id: Ic309f4aad116fd424d5d0d0e2016d61be8826b78
parent b0fccf4d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -894,7 +894,14 @@ public final class BluetoothDevice implements Parcelable {
            return null;
        }
        try {
            return service.getRemoteAlias(this);
            String alias = service.getRemoteAlias(this);
            if (alias == null) {
                return getName();
            }
            return alias
                    .replace('\t', ' ')
                    .replace('\n', ' ')
                    .replace('\r', ' ');
        } catch (RemoteException e) {
            Log.e(TAG, "", e);
        }