Fetch the wallpaper category from the server instead of cache when launching the app(activity).
Bug: 169029398
Change-Id: Icbbb11c33ae4d4dd7d376a7792d0f685ad809421
diff --git a/src/com/android/wallpaper/picker/TopLevelPickerActivity.java b/src/com/android/wallpaper/picker/TopLevelPickerActivity.java
index 40627b5..8e667cb 100755
--- a/src/com/android/wallpaper/picker/TopLevelPickerActivity.java
+++ b/src/com/android/wallpaper/picker/TopLevelPickerActivity.java
@@ -169,6 +169,8 @@
mWallpaperPreferences = injector.getPreferences(this);
mWasCustomPhotoWallpaperSet = false;
+ mDelegate.getCategoryProvider().resetIfNeeded();
+
@WallpaperSupportLevel int wallpaperSupportLevel = mDelegate.getWallpaperSupportLevel();
if (wallpaperSupportLevel != WallpaperDisabledFragment.SUPPORTED_CAN_SET) {
setContentView(R.layout.activity_top_level_picker);