Added changes to WallpaperPreviewer for sending the current state in the
picker to WallpaperEngine
This CL aims at making changes for sending the current state in the
picker to WallpaperEngine through the dispatch wallpaper command.
Bug: b/297131459
Test: Tested by building and installing picker, and printing logs.
Change-Id: I53b2ea9ac0dbb2a79b109695c5e46249b5ac8fbc
diff --git a/src/com/android/customization/picker/WallpaperPreviewer.java b/src/com/android/customization/picker/WallpaperPreviewer.java
index 1b9ea9f..d74bfae 100644
--- a/src/com/android/customization/picker/WallpaperPreviewer.java
+++ b/src/com/android/customization/picker/WallpaperPreviewer.java
@@ -241,7 +241,7 @@
() -> mFadeInScrim.setVisibility(View.INVISIBLE));
}
}
- }, mWallpaperSurface);
+ }, mWallpaperSurface, WallpaperConnection.WHICH_PREVIEW.PREVIEW_CURRENT);
mWallpaperConnection.setVisibility(true);
mHomePreview.post(() -> {