Merge "Reset splash icon when task icon is null to avoid caching incorrect drawable." into tm-qpr-dev am: 0f76a4d810

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20980939

Change-Id: I332ee64b21c99362eb42eadfd407c5564d81e93b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Pat Manning
2023-01-20 14:38:32 +00:00
committed by Automerger Merge Worker

View File

@@ -377,6 +377,8 @@ public class TaskThumbnailView extends View {
private void updateSplashView(Drawable icon) {
if (icon == null || icon.getConstantState() == null) {
mSplashViewDrawable = null;
mSplashView = null;
return;
}
mSplashViewDrawable = icon.getConstantState().newDrawable().mutate();