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

Commit 7e88d113 authored by Kevin Chyn's avatar Kevin Chyn
Browse files

FaceManager removal callback should propagate remaining

Fixes: 110994796

Test: builds
Change-Id: I9a82a50a8bbd4b0c21a2acef33c9ec3fdff5c7f8
parent 017e76e7
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -869,7 +869,7 @@ public class FaceManager implements BiometricFaceConstants {
         *
         * @param face The face template that was removed.
         */
        public void onRemovalSucceeded(Face face) {
        public void onRemovalSucceeded(Face face, int remaining) {
        }
    }

@@ -937,13 +937,13 @@ public class FaceManager implements BiometricFaceConstants {
                            msg.arg2 /* vendorCode */);
                    break;
                case MSG_REMOVED:
                    sendRemovedResult((Face) msg.obj);
                    sendRemovedResult((Face) msg.obj, msg.arg1 /* remaining */);
                    break;
            }
        }
    };

    private void sendRemovedResult(Face face) {
    private void sendRemovedResult(Face face, int remaining) {
        if (mRemovalCallback == null) {
            return;
        }
@@ -953,7 +953,7 @@ public class FaceManager implements BiometricFaceConstants {
        }


        mRemovalCallback.onRemovalSucceeded(face);
        mRemovalCallback.onRemovalSucceeded(face, remaining);
    }

    private void sendErrorResult(long deviceId, int errMsgId, int vendorCode) {