Fix custom icon pack icons

Close #880
This commit is contained in:
MM20 2024-06-15 01:20:58 +02:00
parent 2b78ab0c4c
commit 82f810cf71
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -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,