commit | b2998ed80821f22ec455e7763241949464404a3d | [log] [tgz] |
---|---|---|
author | Kunhung Li <kunhungli@google.com> | Thu Feb 24 10:25:23 2022 +0000 |
committer | Presubmit Automerger Backend <android-build-presubmit-automerger-backend@system.gserviceaccount.com> | Thu Feb 24 10:25:23 2022 +0000 |
tree | 04fe8f5f070a5cea54d0c489b87791315a3bb120 | |
parent | d7a3eb43ca3d99cdb98d15c74ee8c2e2a9f9ec3b [diff] | |
parent | d7532c48b92165f96eb403a8d0e81502f08ec638 [diff] |
[automerge] Fix Talkback speak pages for "Wallpapers/Basic colors" tab 2p: d7532c48b9 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/ThemePicker/+/16996074 Bug: 219863524 Change-Id: Ibe37ee085a4b963cd04e2cf3126ef145c9c917b5
diff --git a/src/com/android/customization/model/color/ColorSectionController.java b/src/com/android/customization/model/color/ColorSectionController.java index c3b6825..c1d28ab 100644 --- a/src/com/android/customization/model/color/ColorSectionController.java +++ b/src/com/android/customization/model/color/ColorSectionController.java
@@ -15,6 +15,7 @@ */ package com.android.customization.model.color; +import static android.view.View.IMPORTANT_FOR_ACCESSIBILITY_NO; import static android.view.View.VISIBLE; import static com.android.customization.model.color.ColorOptionsProvider.COLOR_SOURCE_HOME; @@ -123,6 +124,9 @@ mColorSectionViewPager = mColorSectionView.findViewById(R.id.color_section_view_pager); mColorSectionViewPager.setAdapter(mColorSectionAdapter); mColorSectionViewPager.setUserInputEnabled(false); + if (ColorProvider.themeStyleEnabled) { + mColorSectionViewPager.setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO); + } mTabLayout = mColorSectionView.findViewById(R.id.separated_tabs); mColorSectionAdapter.setNumColors(context.getResources().getInteger( R.integer.options_grid_num_columns));