Merge changes from topic "presubmit-am-f8592529c22f414f881543f2bffe85af"
* changes:
[automerge] Fix Talkback speak pages for "Wallpapers/Basic colors" tab 2p: d7532c48b9 2p: b2998ed808
[automerge] Fix Talkback speak pages for "Wallpapers/Basic colors" tab 2p: d7532c48b9
Fix Talkback speak pages for "Wallpapers/Basic colors" tab
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));