FaceEnrollIntro requires scroll for accessibility

Test: Turn talkback on, verified that scrolling moves the talkback
cursor to the next text items.
Fixes: 336963233

Change-Id: Ia9f24ee658df96647fe953e84119d20270200011
Merged-In: Ia9f24ee658df96647fe953e84119d20270200011
(cherry picked from commit 4b66abd921)
This commit is contained in:
Joshua McCloskey
2024-06-12 18:34:51 +00:00
committed by Joshua Mccloskey
parent f9a571ddef
commit 5434bb2a0f

View File

@@ -38,6 +38,7 @@ import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import androidx.annotation.NonNull;
@@ -160,6 +161,10 @@ public class FaceEnrollIntroduction extends BiometricEnrollIntroduction {
inControlMessage.setMovementMethod(LinkMovementMethod.getInstance());
lessSecure.setText(getLessSecureMessage());
final ScrollView scrollView =
findViewById(com.google.android.setupdesign.R.id.sud_scroll_view);
scrollView.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES);
// Set up and show the "require eyes" info section if necessary.
if (getResources().getBoolean(R.bool.config_face_intro_show_require_eyes)) {
final LinearLayout infoRowRequireEyes = findViewById(R.id.info_row_require_eyes);