Skip to content

Commit 0871750

Browse files
authored
fix(liveness): ui updates (#104)
1 parent 4eb8a5a commit 0871750

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

liveness/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<resources>
1818
<string name="amplify_ui_liveness_get_ready_center_face_label">Center your face</string>
1919
<string name="amplify_ui_liveness_get_ready_photosensitivity_title">Photosensitivity warning</string>
20-
<string name="amplify_ui_liveness_get_ready_photosensitivity_description">This check flashes different colors. Use caution if you are photosensitive</string>
20+
<string name="amplify_ui_liveness_get_ready_photosensitivity_description">This check flashes different colors. Use caution if you are photosensitive.</string>
2121
<string name="amplify_ui_liveness_get_ready_a11y_photosensitivity_icon_content_description">Photosensitivity Information</string>
2222
<string name="amplify_ui_liveness_get_ready_photosensitivity_dialog_title">Photosensitivity warning</string>
2323
<string name="amplify_ui_liveness_get_ready_photosensitivity_dialog_description">Some people may experience epileptic seizures when exposed to colored lights. Use caution if you, or anyone in your family, have an epileptic condition.</string>

samples/liveness/app/src/main/java/com/amplifyframework/ui/sample/liveness/ui/ResultScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ private fun ResultsView(sessionId: String,
270270
)
271271
}
272272
}
273-
if (!isLive) {
273+
if (!isLive && error == null) {
274274
Spacer(Modifier.height(8.dp))
275275
TipView()
276276
}

samples/liveness/app/src/main/res/values/strings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<resources>
1717
<string name="app_name">Liveness Sample App</string>
1818

19-
<string name="liveness_check">Liveness Check</string>
20-
<string name="liveness_result">Liveness Result</string>
19+
<string name="liveness_check">Liveness check</string>
20+
<string name="liveness_result">Liveness result</string>
2121
<string name="session_id_label">Session ID:</string>
2222
<string name="confidence_score_label">Liveness confidence score:</string>
2323
<string name="result_label">Result:</string>
@@ -32,7 +32,7 @@
3232
<string name="error_camera_permission_denied_title">Camera permission not granted</string>
3333
<string name="error_camera_permission_denied_message">Camera permission required to perform check</string>
3434
<string name="error_timed_out_title">Time out</string>
35-
<string name="error_timed_out_face_fit_message">Face did not fill oval within time limit. Try again and completely fill oval with face within it.</string>
35+
<string name="error_timed_out_face_fit_message">Face didn\'t fill oval within time limit. Try again and completely fill oval with face in it.</string>
3636
<string name="error_timed_out_session_message">Session timed out. Try again.</string>
3737
<string name="error_failure_during_countdown_title">"Check failed during countdown"</string>
3838
<string name="error_failure_during_countdown_message">Avoid moving closer during countdown and ensure only one face is in front of camera.</string>

0 commit comments

Comments
 (0)