diff options
author | Chris Poultney <poultney@google.com> | 2023-03-31 16:49:42 +0000 |
---|---|---|
committer | Chris Poultney <poultney@google.com> | 2023-03-31 16:49:42 +0000 |
commit | 14d94d608d3476dad75dd086e47454e553d1dca2 (patch) | |
tree | 8408992023c843f1bf2074fc6e7b13e7d9bf7798 | |
parent | 6e393258111e9a3c413347621f37f8c44ebc3dc0 (diff) | |
download | WallpaperPicker2-14d94d608d3476dad75dd086e47454e553d1dca2.tar.gz |
Updates wallpaper preview when choosing new wallpaper
Forces refresh every time WallpaperSectionController resumes, which
starts update on background thread. This workaround may be necessary
until activity is no longer restarted on wallpaper/theme choice.
Fixes: 275095150
Test: manually verified that preview updates correctly
Change-Id: I5dce6dcf08fdbd4bd79095cd54dc580a77ba11ee
-rw-r--r-- | src/com/android/wallpaper/model/WallpaperSectionController.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/wallpaper/model/WallpaperSectionController.java b/src/com/android/wallpaper/model/WallpaperSectionController.java index 649e79aa..4fd824bc 100644 --- a/src/com/android/wallpaper/model/WallpaperSectionController.java +++ b/src/com/android/wallpaper/model/WallpaperSectionController.java @@ -134,7 +134,7 @@ public class WallpaperSectionController implements @OnLifecycleEvent(Lifecycle.Event.ON_RESUME) @MainThread public void onResume() { - refreshCurrentWallpapers(/* forceRefresh= */ mSavedInstanceState == null); + refreshCurrentWallpapers(/* forceRefresh= */ true); updateLivePreviewVisibility(true); } |