Fixes Talkback autoscroll for SFPS enrollment ScrollView
Adds importantForAccessibility attribute to ScrollView in setup wizard layout. This enables Talkback to autoscroll when focusing on items at the edge of a container. Test: (manual) Turn on talkback, navigate to SFPS enrollment edu screen. Swipe through ScrollView elements and observe autoscroll when focus is on elements at the edge of the View. Fixes: 244595576 Change-Id: Iccc6125ac8f0993a7d8908f6c54e7307905b7cd7
This commit is contained in:
@@ -31,6 +31,7 @@ import android.text.method.LinkMovementMethod;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.ScrollView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
@@ -123,6 +124,9 @@ public class FingerprintEnrollIntroduction extends BiometricEnrollIntroduction {
|
||||
final TextView footerTitle2 = findViewById(R.id.footer_title_2);
|
||||
footerTitle1.setText(getFooterTitle1());
|
||||
footerTitle2.setText(getFooterTitle2());
|
||||
|
||||
final ScrollView scrollView = findViewById(R.id.sud_scroll_view);
|
||||
scrollView.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user