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

Commit 1a878c1f authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Enroll for the correct user

Bug: 110907543

Test: Builds
Change-Id: I637809cd18d84402918c95d1fc010dacc14f8785
parent 77765369
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -165,7 +165,7 @@ public class FaceService extends BiometricServiceBase {
                }
            };

            enrollInternal(client, UserHandle.getCallingUserId());
            enrollInternal(client, mCurrentUserId);
        }

        @Override // Binder call
@@ -813,7 +813,7 @@ public class FaceService extends BiometricServiceBase {
                com.android.internal.R.integer.config_faceMaxTemplatesPerUser);
        final int enrolled = FaceService.this.getEnrolledTemplates(userId).size();
        if (enrolled >= limit) {
            Slog.w(TAG, "Too many faces registered");
            Slog.w(TAG, "Too many faces registered, user: " + userId);
            return true;
        }
        return false;