mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user