Fix TB can't visited all items in wallpapers list
- Same symptom with ag/11850638, use the same solution to make those
pages behavior aligned
- Setup AccessibilityDelegateCompat for adapter to control category
list's expand behavior, since using TB to travel a collapsed list will
hard to notice the focused item, make it expanded when traveling to
second column
video: https://drive.google.com/file/d/1aEtxntVb4XHF92MGZRhOogMBNDHPtR-y/view?usp=sharing
Bug: 157963901
Test: manually
Change-Id: I6277702bf237db4bb7a98f3402e686127ff2833e
diff --git a/src/com/android/wallpaper/picker/individual/IndividualPickerFragment.java b/src/com/android/wallpaper/picker/individual/IndividualPickerFragment.java
index 98d5f2a..3a48516 100755
--- a/src/com/android/wallpaper/picker/individual/IndividualPickerFragment.java
+++ b/src/com/android/wallpaper/picker/individual/IndividualPickerFragment.java
@@ -90,6 +90,8 @@
import com.android.wallpaper.util.SizeCalculator;
import com.android.wallpaper.widget.BottomActionBar;
import com.android.wallpaper.widget.WallpaperInfoView;
+import com.android.wallpaper.widget.WallpaperPickerRecyclerViewAccessibilityDelegate;
+import com.android.wallpaper.widget.WallpaperPickerRecyclerViewAccessibilityDelegate.BottomSheetHost;
import com.bumptech.glide.Glide;
import com.bumptech.glide.MemoryCategory;
@@ -447,6 +449,9 @@
return windowInsets;
});
+ mImageGrid.setAccessibilityDelegateCompat(
+ new WallpaperPickerRecyclerViewAccessibilityDelegate(
+ mImageGrid, (BottomSheetHost) getParentFragment(), getNumColumns()));
maybeSetUpImageGrid();
setUpBottomSheet();
return view;