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

Commit 965d845e authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Fix biometrics bug of mismatched data types.

They're writing a "long" value, but attempting to read it back as
an "int" risks losing precision; they need to read as a "long".

Bug: 176144163
Test: manual
Change-Id: I23bca4ebfb38f27ce640d52ec737375c3e1f4ab5
parent e72d3dec
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ public class FaceUserState extends BiometricUserState<Face> {
            if (tagName.equals(TAG_FACE)) {
                String name = parser.getAttributeValue(null, ATTR_NAME);
                int faceId = parser.getAttributeInt(null, ATTR_FACE_ID);
                int deviceId = parser.getAttributeInt(null, ATTR_DEVICE_ID);
                long deviceId = parser.getAttributeLong(null, ATTR_DEVICE_ID);
                mBiometrics.add(new Face(name, faceId, deviceId));
            }
        }