Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit effe6438 authored by Pat Manning's avatar Pat Manning
Browse files

Reset splash icon when task icon is null to avoid caching incorrect drawable.

Fix: 263365662
Test: manual
Change-Id: I79390381f4cab79b9729bd819630eeb9c8b47d1d
parent d96be3eb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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();