Merge "Fix extracting 32-bit uuid error via calling method uuidToBytes"

This commit is contained in:
Treehugger Robot
2017-09-18 17:37:26 +00:00
committed by Gerrit Code Review

View File

@@ -232,7 +232,7 @@ public final class BluetoothUuid {
*/
public static int getServiceIdentifierFromParcelUuid(ParcelUuid parcelUuid) {
UUID uuid = parcelUuid.getUuid();
long value = (uuid.getMostSignificantBits() & 0x0000FFFF00000000L) >>> 32;
long value = (uuid.getMostSignificantBits() & 0xFFFFFFFF00000000L) >>> 32;
return (int) value;
}