diff --git a/res/drawable/ic_conversations_widget_category.xml b/res/drawable/ic_conversations_widget_category.xml new file mode 100644 index 0000000000..7b13b239ac --- /dev/null +++ b/res/drawable/ic_conversations_widget_category.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + diff --git a/src/com/android/launcher3/widget/picker/WidgetsListHeader.java b/src/com/android/launcher3/widget/picker/WidgetsListHeader.java index ccf3187770..41aa4378f0 100644 --- a/src/com/android/launcher3/widget/picker/WidgetsListHeader.java +++ b/src/com/android/launcher3/widget/picker/WidgetsListHeader.java @@ -35,7 +35,6 @@ import androidx.recyclerview.widget.RecyclerView; import com.android.launcher3.DeviceProfile; import com.android.launcher3.LauncherAppState; import com.android.launcher3.R; -import com.android.launcher3.icons.FastBitmapDrawable; import com.android.launcher3.icons.IconCache.ItemInfoUpdateReceiver; import com.android.launcher3.icons.PlaceHolderIconDrawable; import com.android.launcher3.icons.cache.HandlerRunnable; @@ -174,7 +173,14 @@ public final class WidgetsListHeader extends LinearLayout implements ItemInfoUpd } private void setIcon(PackageItemInfo info) { - FastBitmapDrawable icon = info.newIcon(getContext()); + Drawable icon; + switch (info.category) { + case PackageItemInfo.CONVERSATIONS: + icon = getContext().getDrawable(R.drawable.ic_conversations_widget_category); + break; + default: + icon = info.newIcon(getContext()); + } applyDrawables(icon); mIconDrawable = icon; if (mIconDrawable != null) {