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

Commit 5f614163 authored by Kenny Root's avatar Kenny Root
Browse files

Add hashCode() to BluetoothService$RemoteService

RemoteService is used as a key in a HashMap, so it should have a
hashCode()

Change-Id: I69b72991474f4d5ec11c0620a6e66eb0c44d04b6
parent 0f5a434c
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -136,6 +136,14 @@ public class BluetoothService extends IBluetooth.Stub {
            }
            }
            return false;
            return false;
        }
        }

        @Override
        public int hashCode() {
            int hash = 1;
            hash = hash * 31 + (address == null ? 0 : address.hashCode());
            hash = hash * 31 + (uuid == null ? 0 : uuid.hashCode());
            return hash;
        }
    }
    }


    static {
    static {