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

Commit 6508d511 authored by Venkata Jagadeesh Garaga's avatar Venkata Jagadeesh Garaga Committed by Gerrit - the friendly Code Review server
Browse files

Bluetooth: Fix setting app stoped when unpair device

Revert gerrit: Bluetooth DUT discovery the correct adapter name.
If set alias name as null, later it will call setAlias function,
it does't check input string and call function getBytes() on the
null object.

CRs-Fixed: 1082835
Change-Id: I6c6c9c6427517993c7288994e2ae0142caac43c2
parent 5be6682d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -327,7 +327,6 @@ public final class CachedBluetoothDevice implements Comparable<CachedBluetoothDe
                final boolean successful = dev.removeBond();
                if (successful) {
                    if (Utils.D) {
                        mDevice.setAlias(null);
                        Log.d(TAG, "Command sent successfully:REMOVE_BOND " + describe(null));
                    }
                } else if (Utils.V) {