From 82f810cf711e9a760933b98b066540637860e5cf Mon Sep 17 00:00:00 2001 From: MM20 <15646950+MM2-0@users.noreply.github.com> Date: Sat, 15 Jun 2024 01:20:58 +0200 Subject: [PATCH] Fix custom icon pack icons Close #880 --- .../de/mm20/launcher2/data/customattrs/CustomAttribute.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/customattrs/src/main/java/de/mm20/launcher2/data/customattrs/CustomAttribute.kt b/data/customattrs/src/main/java/de/mm20/launcher2/data/customattrs/CustomAttribute.kt index c04530ec..0a4114af 100644 --- a/data/customattrs/src/main/java/de/mm20/launcher2/data/customattrs/CustomAttribute.kt +++ b/data/customattrs/src/main/java/de/mm20/launcher2/data/customattrs/CustomAttribute.kt @@ -97,7 +97,7 @@ sealed class CustomIcon : CustomAttribute { "custom_icon_pack_icon2" -> { CustomIconPackIcon( iconPackPackage = payload.getString("icon_pack"), - type = payload.getString("type"), + type = payload.getString("icon_type"), drawable = payload.optString("drawable"), extras = payload.optString("extras").takeIf { it.isNotEmpty() }, allowThemed = payload.optBoolean("allow_themed", true), @@ -157,7 +157,7 @@ data class CustomIconPackIcon( return jsonObjectOf( "type" to "custom_icon_pack_icon2", "icon_pack" to iconPackPackage, - "type" to type, + "icon_type" to type, "drawable" to drawable, "extras" to extras, "allow_themed" to allowThemed,