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

This commit is contained in:
Pat Manning
2023-01-20 14:17:09 +00:00
committed by Android (Google) Code Review

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();