Render user's actual workspace in ThemePicker preview (Part 6)

Didn't test out widgets in Part 5. So in this change,
- Added some widget classes to the PreviewContext WHITELIST
- Manually update widget model after loading workspace since we do not attach widget listeners to the LauncherAppModel for preview.

Change-Id: I0a555b2319b2e91432dbd58289ddb66aca1384df
This commit is contained in:
Tracy Zhou
2020-02-24 13:50:29 -08:00
parent 2fe6fb9671
commit bd22546683
4 changed files with 33 additions and 3 deletions

View File

@@ -104,7 +104,7 @@ import java.util.concurrent.CancellationException;
public class LoaderTask implements Runnable {
private static final String TAG = "LoaderTask";
private final LauncherAppState mApp;
protected final LauncherAppState mApp;
private final AllAppsList mBgAllAppsList;
protected final BgDataModel mBgDataModel;