Use ViewModel to store loading animation state (2/3)
Replace usages of saved instance state with view model fields, since large data structures like bitmaps should not be stored in saved instance state. Decided to use CustomizationPickerViewModel to store these fields since the ViewModel needs to be unique within the CustomizationPickerFragment scope. Bug: 274443705 Flag: wallpaper_picker_preview_animation Test: Manually tested to ensure animation is unchanged, and functionality is unchanged wherever ScreenPreviewViewModel is used Change-Id: I0208148d3580a314d9fa0ea90d34e933b6773c02
Loading
Please register or sign in to comment