* Otherwise only one fingerprint can be registered
Change-Id: I89f4be25d060f461ca6b6e46d3ce7c601828c914
LOG(DEBUG) << "onEnumerate(fid=" << msg->data.enumerated.finger.fid
<< ", gid=" << msg->data.enumerated.finger.gid
<< ", rem=" << msg->data.enumerated.remaining_templates << ")";
- std::vector<int> enrollments;
+ static std::vector<int> enrollments;
enrollments.push_back(msg->data.enumerated.finger.fid);
- mCb->onEnrollmentsEnumerated(enrollments);
+ if (msg->data.enumerated.remaining_templates == 0) {
+ mCb->onEnrollmentsEnumerated(enrollments);
+ enrollments.clear();
+ }
} break;
}
}