summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Poultney <poultney@google.com>2023-04-05 20:35:12 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2023-04-05 20:35:12 +0000
commit0f69a87419d18763df29b0da97775a5dfd0fef0f (patch)
treebe1bda134653e17c3201c70a60846a44b2d046f7
parent4894e95179abe8d0329bc3afb51b49beaf2f29db (diff)
parentdc6ca96f7a04929d9cbf0c27691e8ee9b042bf79 (diff)
Merge "Fixes wallpaper thumbnails disappearing after setting wallpaper" into tm-qpr-dev
-rw-r--r--src/com/android/wallpaper/picker/CustomizationPickerActivity.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/wallpaper/picker/CustomizationPickerActivity.java b/src/com/android/wallpaper/picker/CustomizationPickerActivity.java
index 1ed7272e..3f8c2d03 100644
--- a/src/com/android/wallpaper/picker/CustomizationPickerActivity.java
+++ b/src/com/android/wallpaper/picker/CustomizationPickerActivity.java
@@ -126,6 +126,9 @@ public class CustomizationPickerActivity extends FragmentActivity implements App
? WallpaperOnlyFragment.newInstance(mIsUseRevampedUi)
: CustomizationPickerFragment.newInstance(
mIsUseRevampedUi, startFromLockScreen));
+
+ // Cache the categories, but only if we're not restoring state (b/276767415).
+ mDelegate.prefetchCategories();
}
if (savedInstanceState == null) {
@@ -161,7 +164,6 @@ public class CustomizationPickerActivity extends FragmentActivity implements App
this, deepLinkCollectionId));
intent.setData(null);
}
- mDelegate.prefetchCategories();
}
@Override