[tp] Fixes wallpaper quick switcher preview flashing (2/3)
- Repository changed to filter out unknown wallpaper IDs.
- View binder updated to only animate thumbnails, borders, and selection
icons, at the right times
Fix: 281004766
Test: manually verified that the flashing is gone. Done so for initial
app load, switching wallpapers through the switcher, and switching to a
new wallpaper that wasn't present in the quick switcher. Please see
before/after videos attached to the bug.
Change-Id: I9f414181667b51a1eb30cbad4812e3f84b7fbe34
diff --git a/src/com/android/customization/module/DefaultCustomizationSections.java b/src/com/android/customization/module/DefaultCustomizationSections.java
index 520b301..b8d43ed 100644
--- a/src/com/android/customization/module/DefaultCustomizationSections.java
+++ b/src/com/android/customization/module/DefaultCustomizationSections.java
@@ -146,11 +146,11 @@
lifecycleOwner),
// Wallpaper quick switch section.
new WallpaperQuickSwitchSectionController(
- screen,
customizationPickerViewModel.getWallpaperQuickSwitchViewModel(
screen),
lifecycleOwner,
- sectionNavigationController),
+ sectionNavigationController,
+ savedInstanceState == null),
/* reverseOrderWhenHorizontal= */ true));
switch (screen) {