File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
java/com/appliedrec/credentials/app Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,11 @@ private void showResult(FaceCapture detectedFace) {
156
156
@ Override
157
157
public void onSessionFinished (IVerIDSession <?> abstractVerIDSession , VerIDSessionResult verIDSessionResult ) {
158
158
if (!verIDSessionResult .getError ().isPresent ()) {
159
- verIDSessionResult .getFirstFaceCapture (Bearing .STRAIGHT ).ifPresent (this ::showResult );
159
+ if (verIDSessionResult .getFirstFaceCapture (Bearing .STRAIGHT ).isPresent ()) {
160
+ showResult (verIDSessionResult .getFirstFaceCapture (Bearing .STRAIGHT ).get ());
161
+ } else {
162
+ showError (R .string .failed_to_extract_frontal_face_image );
163
+ }
160
164
} else {
161
165
showError (R .string .face_capture_failed );
162
166
}
Original file line number Diff line number Diff line change 55
55
<string name =" face_capture_failed" >Face capture failed</string >
56
56
<string name =" failed_to_start_session" >Failed to start session</string >
57
57
<string name =" failed_to_prepare_face_images" >Failed to prepare face images</string >
58
+ <string name =" failed_to_extract_frontal_face_image" >Failed to extract frontal face image</string >
58
59
</resources >
You can’t perform that action at this time.
0 commit comments