Fix editing current wallpaper crop on foldable

When editing crop for a displaySize it could reset the other crop from
the other display size to its default crop, because when we fill the
current wallpaper crops we also need to fill the one tracking the full
preview crops.

Flag: ACONFIG com.android.wallpaper.multi_crop_preview_ui_flag STAGING
Bug: 303317694
Test: crop current wallpaper make sure one doesn't affect the other
Change-Id: I1f95891ced8c5d7fce221ae54aa5c71ea86c8aac
diff --git a/src/com/android/wallpaper/picker/preview/ui/viewmodel/StaticWallpaperPreviewViewModel.kt b/src/com/android/wallpaper/picker/preview/ui/viewmodel/StaticWallpaperPreviewViewModel.kt
index 34f587a..1e9288a 100644
--- a/src/com/android/wallpaper/picker/preview/ui/viewmodel/StaticWallpaperPreviewViewModel.kt
+++ b/src/com/android/wallpaper/picker/preview/ui/viewmodel/StaticWallpaperPreviewViewModel.kt
@@ -126,7 +126,9 @@
      * confirms a crop.
      */
     fun updateCropHintsInfo(cropHintsInfo: Map<Point, FullPreviewCropModel>) {
-        this.cropHintsInfo.value = this.cropHintsInfo.value?.plus(cropHintsInfo) ?: cropHintsInfo
+        val newInfo = this.cropHintsInfo.value?.plus(cropHintsInfo) ?: cropHintsInfo
+        this.cropHintsInfo.value = newInfo
+        fullPreviewCropModels.putAll(newInfo)
     }
 
     // TODO b/296288298 Create a util class for Bitmap and Asset